]> granicus.if.org Git - clang/commit
Make TargetInfo store an actual DataLayout instead of a string.
authorJames Y Knight <jyknight@google.com>
Fri, 4 Mar 2016 19:00:41 +0000 (19:00 +0000)
committerJames Y Knight <jyknight@google.com>
Fri, 4 Mar 2016 19:00:41 +0000 (19:00 +0000)
commite85ad572986c6fbbc45f361b706ea831c5ecf004
tree54db30acb8783265d490c97c10c0b21056ea194f
parent0c35e452895ad039178f3a19e90a1c36b4554749
Make TargetInfo store an actual DataLayout instead of a string.

Use it to calculate UserLabelPrefix, instead of specifying it (often
incorrectly).

Note that the *actual* user label prefix has always come from the
DataLayout, and is handled within LLVM. The main thing clang's
TargetInfo::UserLabelPrefix did was to set the #define value. Having
these be different from each-other is just silly.

Differential Revision: http://reviews.llvm.org/D17183

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262737 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Basic/TargetInfo.h
include/clang/CodeGen/BackendUtil.h
lib/AST/Mangle.cpp
lib/Basic/TargetInfo.cpp
lib/Basic/Targets.cpp
lib/CodeGen/BackendUtil.cpp
lib/CodeGen/CodeGenAction.cpp
lib/CodeGen/ModuleBuilder.cpp
lib/CodeGen/ObjectFilePCHContainerOperations.cpp
lib/Frontend/InitPreprocessor.cpp
lib/Index/CodegenNameGenerator.cpp
test/Preprocessor/init.c
unittests/Basic/SourceManagerTest.cpp
unittests/Lex/LexerTest.cpp
unittests/Lex/PPConditionalDirectiveRecordTest.cpp