Merge pull request #918 from dbabokin/trunk
Removing -debug-ir functionality for 3.6, as it was removed from LLVM.
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -167,7 +167,7 @@ devUsage(int ret) {
|
||||
printf(" [--yydebug]\t\t\t\tPrint debugging information during parsing\n");
|
||||
printf(" [--debug-phase=<value>]\t\tSet optimization phases to dump. --debug-phase=first,210:220,300,305,310:last\n");
|
||||
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) // LLVM 3.4+
|
||||
#if defined(LLVM_3_4) || defined(LLVM_3_5) // only 3.4 and 3.5
|
||||
printf(" [--debug-ir=<value>]\t\tSet optimization phase to generate debugIR after it\n");
|
||||
#endif
|
||||
printf(" [--off-phase=<value>]\t\tSwitch off optimization phases. --off-phase=first,210:220,300,305,310:last\n");
|
||||
@@ -558,7 +558,7 @@ int main(int Argc, char *Argv[]) {
|
||||
g->debug_stages = ParsingPhases(argv[i] + strlen("--debug-phase="));
|
||||
}
|
||||
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) // LLVM 3.4+
|
||||
#if defined(LLVM_3_4) || defined(LLVM_3_5) // only 3.4 and 3.5
|
||||
else if (strncmp(argv[i], "--debug-ir=", 11) == 0) {
|
||||
g->debugIR = ParsingPhaseName(argv[i] + strlen("--debug-ir="));
|
||||
}
|
||||
|
||||
2
opt.cpp
2
opt.cpp
@@ -459,7 +459,7 @@ DebugPassManager::add(llvm::Pass * P, int stage = -1) {
|
||||
PM.add(CreateDebugPass(buf));
|
||||
}
|
||||
|
||||
#if !defined(LLVM_3_2) && !defined(LLVM_3_3) // LLVM 3.4+
|
||||
#if defined(LLVM_3_4) || defined(LLVM_3_5) // only 3.4 and 3.5
|
||||
if (g->debugIR == number) {
|
||||
// adding generating of LLVM IR debug after optimization
|
||||
char buf[100];
|
||||
|
||||
Reference in New Issue
Block a user