diff options
author | Rong Xu <xur@google.com> | 2019-03-01 17:50:20 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2019-03-01 17:50:20 +0000 |
commit | 39f6d7e6160b27aaffbd03f1ecc1560b77b7d1df (patch) | |
tree | dcf527a80c43a913ce350a40a4085fbad2cce7f0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d295f514690761976199da0381d2893dabd75faa (diff) | |
download | bcm5719-llvm-39f6d7e6160b27aaffbd03f1ecc1560b77b7d1df.tar.gz bcm5719-llvm-39f6d7e6160b27aaffbd03f1ecc1560b77b7d1df.zip |
[PGO] Use the explicit parameter in ProfileSummary API. NFC
Use the explicit parameter in setProfileSummary() and getSummary().
This is a follow-up of r355131.
llvm-svn: 355209
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 8ea8128ceab..13fa3e780fd 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -52,6 +52,7 @@ #include "llvm/IR/Intrinsics.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" +#include "llvm/IR/ProfileSummary.h" #include "llvm/ProfileData/InstrProfReader.h" #include "llvm/Support/CodeGen.h" #include "llvm/Support/ConvertUTF.h" @@ -417,7 +418,9 @@ void CodeGenModule::Release() { OpenMPRuntime->clear(); } if (PGOReader) { - getModule().setProfileSummary(PGOReader->getSummary().getMD(VMContext)); + getModule().setProfileSummary( + PGOReader->getSummary(/* UseCS */ false).getMD(VMContext), + llvm::ProfileSummary::PSK_Instr); if (PGOStats.hasDiagnostics()) PGOStats.reportDiagnostics(getDiags(), getCodeGenOpts().MainFileName); } |