Create temporary variables to increase readibility

This commit is contained in:
Alessandro Di Federico
2018-04-23 08:46:46 +02:00
parent a566130825
commit 34d216eb0a
13 changed files with 91 additions and 85 deletions
+11 -9
View File
@@ -31,18 +31,20 @@ namespace StackAnalysis {
template<>
char StackAnalysis<true>::ID = 0;
static llvm::RegisterPass<StackAnalysis<true>> X("sa",
"Stack Analysis Pass",
true,
true);
namespace {
const char *Name = "Stack Analysis Pass";
static RegisterPass<StackAnalysis<true>> X("sa", Name, true, true);
}
template<>
char StackAnalysis<false>::ID = 0;
static llvm::RegisterPass<StackAnalysis<false>> Y("sab",
"Stack Analysis Pass with ABI"
" Analysis",
true,
true);
static RegisterPass<StackAnalysis<false>> Y("sab",
"Stack Analysis Pass with ABI"
" Analysis",
true,
true);
template<bool AnalyzeABI>
bool StackAnalysis<AnalyzeABI>::runOnFunction(Function &F) {