summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorMikhail Maltsev <mikhail.maltsev@arm.com>2018-04-23 10:08:46 +0000
committerMikhail Maltsev <mikhail.maltsev@arm.com>2018-04-23 10:08:46 +0000
commit4a4e7a31adbc1fb69383c113806af25d94b7257e (patch)
treef09071aa562a81ccb0aaa53961f34d9705c1383b /clang/lib/CodeGen/CodeGenModule.cpp
parent6bbc7069c13d78b6ae6f185891a89a847b17b430 (diff)
downloadbcm5719-llvm-4a4e7a31adbc1fb69383c113806af25d94b7257e.tar.gz
bcm5719-llvm-4a4e7a31adbc1fb69383c113806af25d94b7257e.zip
[CodeGen] Reland r330442: Add an option to suppress output of llvm.ident
The test case in the original patch was overly contrained and failed on PPC targets. llvm-svn: 330575
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 63fcc8fbce0..063b9be4cd0 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -571,7 +571,8 @@ void CodeGenModule::Release() {
if (DebugInfo)
DebugInfo->finalize();
- EmitVersionIdentMetadata();
+ if (getCodeGenOpts().EmitVersionIdentMetadata)
+ EmitVersionIdentMetadata();
EmitTargetMetadata();
}
OpenPOWER on IntegriCloud