diff options
author | Xinliang David Li <davidxl@google.com> | 2016-07-22 04:46:56 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-07-22 04:46:56 +0000 |
commit | d382e9d82b086187601cf786d4143816e124eb9f (patch) | |
tree | 84decf806be5bef7337879b41b65eda2e1bc3ea4 /llvm/lib | |
parent | 6e9dee999d0af56944d99df70a9b5387e35d4c6f (diff) | |
download | bcm5719-llvm-d382e9d82b086187601cf786d4143816e124eb9f.tar.gz bcm5719-llvm-d382e9d82b086187601cf786d4143816e124eb9f.zip |
Sync up InstrProfData.inc with compiler-rt with fixes to references
llvm-svn: 276388
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index f54d8ad4814..f9ebde46e77 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -784,7 +784,7 @@ void PGOUseFunc::annotateIndirectCallSites() { } } // end anonymous namespace -// Create a COMDAT variable IR_LEVEL_PROF_VARNAME to make the runtime +// Create a COMDAT variable INSTR_PROF_RAW_VERSION_VAR to make the runtime // aware this is an ir_level profile so it can set the version flag. static void createIRLevelProfileFlagVariable(Module &M) { Type *IntTy64 = Type::getInt64Ty(M.getContext()); @@ -792,14 +792,14 @@ static void createIRLevelProfileFlagVariable(Module &M) { auto IRLevelVersionVariable = new GlobalVariable( M, IntTy64, true, GlobalVariable::ExternalLinkage, Constant::getIntegerValue(IntTy64, APInt(64, ProfileVersion)), - INSTR_PROF_QUOTE(IR_LEVEL_PROF_VERSION_VAR)); + INSTR_PROF_QUOTE(INSTR_PROF_RAW_VERSION_VAR)); IRLevelVersionVariable->setVisibility(GlobalValue::DefaultVisibility); Triple TT(M.getTargetTriple()); if (!TT.supportsCOMDAT()) IRLevelVersionVariable->setLinkage(GlobalValue::WeakAnyLinkage); else IRLevelVersionVariable->setComdat(M.getOrInsertComdat( - StringRef(INSTR_PROF_QUOTE(IR_LEVEL_PROF_VERSION_VAR)))); + StringRef(INSTR_PROF_QUOTE(INSTR_PROF_RAW_VERSION_VAR)))); } static bool InstrumentAllFunctions( |