Omit now-removed Filename string arg from handleBeginSource

[ROCm/hip commit: 7ae6a10c99]
Этот коммит содержится в:
Chris Kitching
2017-10-15 10:56:46 +01:00
родитель b2ac8756fc
Коммит 2584387bfc
+5 -1
Просмотреть файл
@@ -3030,7 +3030,11 @@ public:
HipifyPPCallbacks(Replacements *R, const std::string &mainFileName)
: Cuda2Hip(R, mainFileName), SeenEnd(false), _sm(nullptr), _pp(nullptr) {}
virtual bool handleBeginSource(CompilerInstance &CI, StringRef Filename) override {
virtual bool handleBeginSource(CompilerInstance &CI
#if LLVM_VERSION_MAJOR < 4
, StringRef Filename
#endif
) override {
Preprocessor &PP = CI.getPreprocessor();
SourceManager &SM = CI.getSourceManager();
setSourceManager(&SM);