[HIPIFY] LLVM 3.9 support

3.8 and 3.9 are both supported. 3.8 is stable, 3.9 needs more testing.
This commit is contained in:
Evgeny Mankov
2017-05-05 21:28:02 +03:00
parent 1cb51d614e
commit 05be936fd6
2 changed files with 11 additions and 2 deletions
+4
View File
@@ -3533,7 +3533,11 @@ void printAllStats(const std::string &csvFile, int64_t totalFiles, int64_t conve
int main(int argc, const char **argv) {
auto start = std::chrono::steady_clock::now();
auto begin = start;
#if (LLVM_VERSION_MAJOR >= 3) && (LLVM_VERSION_MINOR >= 9)
llvm::sys::PrintStackTraceOnErrorSignal(StringRef());
#else
llvm::sys::PrintStackTraceOnErrorSignal();
#endif
CommonOptionsParser OptionsParser(argc, argv, ToolTemplateCategory, llvm::cl::OneOrMore);
std::vector<std::string> fileSources = OptionsParser.getSourcePathList();
std::string dst = OutputFilename;