diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-30 18:26:06 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-30 18:26:06 +0000 |
commit | 6dd78e49544299c6e2a4af07b568d127b3a5a991 (patch) | |
tree | ba3dcb5a2fe8bd826dd502bb5f6ae9b589113797 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4ed0e07b231ecee04303bc6e9165359b6c54e274 (diff) | |
download | llvm-6dd78e49544299c6e2a4af07b568d127b3a5a991.zip llvm-6dd78e49544299c6e2a4af07b568d127b3a5a991.tar.gz llvm-6dd78e49544299c6e2a4af07b568d127b3a5a991.tar.bz2 |
CodeGen: address post-commit review comments
David Majnemer pointed out that isOSBinFormatMachO is more compact. NFC.
llvm-svn: 271221
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index cd278e6..eb3adcb 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -3147,7 +3147,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { // FIXME: We set the section explicitly to avoid a bug in ld64 224.1. // Without it LLVM can merge the string with a non unnamed_addr one during // LTO. Doing that changes the section it ends in, which surprises ld64. - if (getTarget().getTriple().getObjectFormat() == llvm::Triple::MachO) + if (getTarget().getTriple().isOSBinFormatMachO()) GV->setSection(isUTF16 ? "__TEXT,__ustring" : "__TEXT,__cstring,cstring_literals"); |