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
Showing
- include/clang/Basic/TargetInfo.h 10 additions, 14 deletionsinclude/clang/Basic/TargetInfo.h
- include/clang/CodeGen/BackendUtil.h 2 additions, 2 deletionsinclude/clang/CodeGen/BackendUtil.h
- lib/AST/Mangle.cpp 3 additions, 3 deletionslib/AST/Mangle.cpp
- lib/Basic/TargetInfo.cpp 0 additions, 2 deletionslib/Basic/TargetInfo.cpp
- lib/Basic/Targets.cpp 95 additions, 127 deletionslib/Basic/Targets.cpp
- lib/CodeGen/BackendUtil.cpp 6 additions, 6 deletionslib/CodeGen/BackendUtil.cpp
- lib/CodeGen/CodeGenAction.cpp 2 additions, 2 deletionslib/CodeGen/CodeGenAction.cpp
- lib/CodeGen/ModuleBuilder.cpp 1 addition, 1 deletionlib/CodeGen/ModuleBuilder.cpp
- lib/CodeGen/ObjectFilePCHContainerOperations.cpp 6 additions, 6 deletionslib/CodeGen/ObjectFilePCHContainerOperations.cpp
- lib/Frontend/InitPreprocessor.cpp 2 additions, 2 deletionslib/Frontend/InitPreprocessor.cpp
- lib/Index/CodegenNameGenerator.cpp 1 addition, 3 deletionslib/Index/CodegenNameGenerator.cpp
- test/Preprocessor/init.c 45 additions, 43 deletionstest/Preprocessor/init.c
- unittests/Basic/SourceManagerTest.cpp 12 additions, 7 deletionsunittests/Basic/SourceManagerTest.cpp
- unittests/Lex/LexerTest.cpp 2 additions, 2 deletionsunittests/Lex/LexerTest.cpp
- unittests/Lex/PPConditionalDirectiveRecordTest.cpp 2 additions, 2 deletionsunittests/Lex/PPConditionalDirectiveRecordTest.cpp
This diff is collapsed.
Please register or sign in to comment