Merge pull request #565 from emankov/master

[HIPIFY] Add DEBUG(X) macro compatibility
Этот коммит содержится в:
Evgeny Mankov
2018-07-11 18:22:47 +03:00
коммит произвёл GitHub
родитель 4aef1351fc 9fcb48e5c4
Коммит d896b2fdc7
2 изменённых файлов: 5 добавлений и 1 удалений
+4
Просмотреть файл
@@ -23,6 +23,10 @@ namespace llcompat {
#define GET_NUM_ARGS() getNumArgs()
#endif
#if LLVM_VERSION_MAJOR < 7
#define LLVM_DEBUG(X) DEBUG(X)
#endif
void PrintStackTraceOnErrorSignal();
/**
+1 -1
Просмотреть файл
@@ -132,7 +132,7 @@ int main(int argc, const char **argv) {
// Hipify _all_ the things!
if (Tool.runAndSave(&actionFactory)) {
DEBUG(llvm::dbgs() << "Skipped some replacements.\n");
LLVM_DEBUG(llvm::dbgs() << "Skipped some replacements.\n");
}
// Either move the tmpfile to the output, or remove it.