projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore hasPostISelHook tblgen flag.
[oota-llvm.git]
/
lib
/
Analysis
/
ProfileVerifierPass.cpp
diff --git
a/lib/Analysis/ProfileVerifierPass.cpp
b/lib/Analysis/ProfileVerifierPass.cpp
index 41fdb276776da05c38d66cb636346b21540c6002..a01751849c519d16eeeba7064b79e1a2fc052b61 100644
(file)
--- a/
lib/Analysis/ProfileVerifierPass.cpp
+++ b/
lib/Analysis/ProfileVerifierPass.cpp
@@
-60,10
+60,12
@@
namespace llvm {
static char ID; // Class identification, replacement for typeinfo
explicit ProfileVerifierPassT () : FunctionPass(ID) {
static char ID; // Class identification, replacement for typeinfo
explicit ProfileVerifierPassT () : FunctionPass(ID) {
+ initializeProfileVerifierPassPass(*PassRegistry::getPassRegistry());
DisableAssertions = ProfileVerifierDisableAssertions;
}
explicit ProfileVerifierPassT (bool da) : FunctionPass(ID),
DisableAssertions(da) {
DisableAssertions = ProfileVerifierDisableAssertions;
}
explicit ProfileVerifierPassT (bool da) : FunctionPass(ID),
DisableAssertions(da) {
+ initializeProfileVerifierPassPass(*PassRegistry::getPassRegistry());
}
void getAnalysisUsage(AnalysisUsage &AU) const {
}
void getAnalysisUsage(AnalysisUsage &AU) const {
@@
-287,7
+289,7
@@
namespace llvm {
i != ie; ++i) {
if (const CallInst *CI = dyn_cast<CallInst>(&*i)) {
FType *F = CI->getCalledFunction();
i != ie; ++i) {
if (const CallInst *CI = dyn_cast<CallInst>(&*i)) {
FType *F = CI->getCalledFunction();
- if (F && (F->getName
Str
() == "_setjmp")) {
+ if (F && (F->getName() == "_setjmp")) {
isSetJmpTarget = true; break;
}
}
isSetJmpTarget = true; break;
}
}
@@
-366,7
+368,10
@@
namespace llvm {
char ProfileVerifierPassT<FType, BType>::ID = 0;
}
char ProfileVerifierPassT<FType, BType>::ID = 0;
}
-INITIALIZE_PASS(ProfileVerifierPass, "profile-verifier",
+INITIALIZE_PASS_BEGIN(ProfileVerifierPass, "profile-verifier",
+ "Verify profiling information", false, true)
+INITIALIZE_AG_DEPENDENCY(ProfileInfo)
+INITIALIZE_PASS_END(ProfileVerifierPass, "profile-verifier",
"Verify profiling information", false, true)
namespace llvm {
"Verify profiling information", false, true)
namespace llvm {