Tweak some version numbers in clang version compatibility checks
Apparently a couple of those APIs changed in clang 5, not 4.
Drat.
[ROCm/clr commit: aa288fcf1f]
Ta zmiana jest zawarta w:
%! (template.HTML=
Chris Kitching)złożyło 2017-10-24 01:45:23 +01:00
1 rodzic
255a770364
złożenie
482541bb8c
Plik 1 zmieniony
+2
-2
@@ -3031,7 +3031,7 @@ public:
|
||||
: Cuda2Hip(R, mainFileName) {}
|
||||
|
||||
virtual bool handleBeginSource(CompilerInstance &CI
|
||||
#if LLVM_VERSION_MAJOR < 4
|
||||
#if LLVM_VERSION_MAJOR <= 4
|
||||
, StringRef Filename
|
||||
#endif
|
||||
) override {
|
||||
@@ -3114,7 +3114,7 @@ public:
|
||||
if (_sm->isWrittenInMainFile(MacroNameTok.getLocation())) {
|
||||
// The getNumArgs function was rather unhelpfully renamed in clang 4.0. Its semantics
|
||||
// remain unchanged.
|
||||
#if LLVM_VERSION_MAJOR > 3
|
||||
#if LLVM_VERSION_MAJOR > 4
|
||||
#define GET_NUM_ARGS() getNumParams()
|
||||
#else
|
||||
#define GET_NUM_ARGS() getNumArgs()
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika