diff options
author | Lang Hames <lhames@gmail.com> | 2015-01-06 23:04:36 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-01-06 23:04:36 +0000 |
commit | 66f755f84f4ed145d0daccc4e49338b48a517874 (patch) | |
tree | eed9beb6577413ec17bd71aae05e16e0fc2c77f9 /llvm/lib/Target/TargetMachine.cpp | |
parent | d0101a2dfd8f81f57989743afe812b0b47acab87 (diff) | |
download | bcm5719-llvm-66f755f84f4ed145d0daccc4e49338b48a517874.tar.gz bcm5719-llvm-66f755f84f4ed145d0daccc4e49338b48a517874.zip |
Revert r224935 "Refactor duplicated code. No intended functionality change."
This is affecting the behavior of some ObjC++ / AArch64 test cases on Darwin.
Reverting to get the bots green while I track down the source of the changed
behavior.
llvm-svn: 225311
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index cff9e062173..309e1bf2786 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -182,8 +182,7 @@ void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &Name, const TargetLoweringObjectFile &TLOF = getSubtargetImpl()->getTargetLowering()->getObjFileLowering(); const MCSection *TheSection = TLOF.SectionForGlobal(GV, GVKind, Mang, *this); - bool CannotUsePrivateLabel = - AsmInfo->isSectionAtomizableBySymbols(*TheSection); + bool CannotUsePrivateLabel = TLOF.isSectionAtomizableBySymbols(*TheSection); Mang.getNameWithPrefix(Name, GV, CannotUsePrivateLabel); } |