Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(132)

Issue 6440051: Asan Initialization Order Checking - Clang

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by reidw
Modified:
12 years, 3 months ago
Base URL:
http://llvm.org/svn/llvm-project/cfe/trunk/
Visibility:
Public.

Description

Need clang to emit metadata identifying dynamically initialized globals.

Patch Set 1 #

Patch Set 2 : Don't emit when only given a global dtor #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
lib/CodeGen/CodeGenModule.cpp View 1 1 chunk +11 lines, -0 lines 4 comments Download

Messages

Total messages: 4
reidw
12 years, 4 months ago (2012-07-26 23:43:21 UTC) #1
kcc1
This patch looks good to me. I don't think my review is enough outside of ...
12 years, 4 months ago (2012-07-27 07:20:55 UTC) #2
glider1
Two minor comments. My review isn't sufficient for Clang code either. https://codereview.appspot.com/6440051/diff/2001/lib/CodeGen/CodeGenModule.cpp File lib/CodeGen/CodeGenModule.cpp (right): ...
12 years, 3 months ago (2012-08-16 09:00:25 UTC) #3
Richard Smith
12 years, 3 months ago (2012-08-16 20:03:31 UTC) #4
LGTM, with a couple more trivial things.

http://codereview.appspot.com/6440051/diff/2001/lib/CodeGen/CodeGenModule.cpp
File lib/CodeGen/CodeGenModule.cpp (right):

http://codereview.appspot.com/6440051/diff/2001/lib/CodeGen/CodeGenModule.cpp...
lib/CodeGen/CodeGenModule.cpp:1688: llvm::Module *M = GV->getParent();
You can use getModule() for this.

http://codereview.appspot.com/6440051/diff/2001/lib/CodeGen/CodeGenModule.cpp...
lib/CodeGen/CodeGenModule.cpp:1692: llvm::MDNode *ThisGlobal =
llvm::MDNode::get(M->getContext(), GlobalToAdd);
CodeGen tends to use VMContext or getLLVMContext() instead of M->getContext().
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b