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

Issue 5430043: implement __has_feature(address_sanitizer)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by kcc
Modified:
12 years, 5 months ago
Reviewers:
chandlerc
Base URL:
https://llvm.org/svn/llvm-project/cfe/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 1

Patch Set 2 : use lang options only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -6 lines) Patch
M include/clang/Basic/LangOptions.def View 1 chunk +1 line, -0 lines 0 comments Download
M include/clang/Frontend/CodeGenOptions.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M lib/CodeGen/BackendUtil.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M lib/Frontend/CompilerInvocation.cpp View 1 4 chunks +3 lines, -3 lines 0 comments Download
M lib/Lex/PPMacroExpansion.cpp View 1 chunk +1 line, -0 lines 0 comments Download
A test/Lexer/has_feature_address_sanitizer.cpp View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 1
chandlerc
12 years, 5 months ago (2011-11-22 00:42:48 UTC) #1
http://codereview.appspot.com/5430043/diff/1/lib/Frontend/CompilerInvocation.cpp
File lib/Frontend/CompilerInvocation.cpp (right):

http://codereview.appspot.com/5430043/diff/1/lib/Frontend/CompilerInvocation....
lib/Frontend/CompilerInvocation.cpp:1809: Opts.AddressSanitizer =
Args.hasArg(OPT_faddress_sanitizer);
I think you'll need to do more here.

We're now parsing the same argument in two places, which doesn't work cleanly
because we need to serialize in each place, and then we'll end up with two
serialized options.

I think we need to setup the CodeGenOpts from the language options, or use the
language options directly in the CodeGen layer. Essentially there should be one
parsing of this argument and one serialization of it
Sign in to reply to this message.

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