summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2018-02-23 21:27:33 +0000
committerSriraman Tallam <tmsriram@google.com>2018-02-23 21:27:33 +0000
commit80af005a485357bf87e0d58f6d4fbab1d186881b (patch)
tree47919abb3bb61d616315794ab7e8944cac2b0a2c /clang/lib/CodeGen/CodeGenModule.cpp
parentd32104e1b2867a41ba98a57881486fbb6b472e76 (diff)
downloadbcm5719-llvm-80af005a485357bf87e0d58f6d4fbab1d186881b.tar.gz
bcm5719-llvm-80af005a485357bf87e0d58f6d4fbab1d186881b.zip
Set Module Metadata "RtLibUseGOT" when fno-plt is used.
Differential Revision: https://reviews.llvm.org/D42217 llvm-svn: 325961
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 03bf2169157..588d001111d 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -555,6 +555,9 @@ void CodeGenModule::Release() {
getModule().setPIELevel(static_cast<llvm::PIELevel::Level>(PLevel));
}
+ if (CodeGenOpts.NoPLT)
+ getModule().setRtLibUseGOT();
+
SimplifyPersonality();
if (getCodeGenOpts().EmitDeclMetadata)
OpenPOWER on IntegriCloud