Omit now-removed Filename string arg from handleBeginSource

This commit is contained in:
Chris Kitching committed 2017-10-19 17:08:55 +01:00
1 parent 7e253365f1
commit 7ae6a10c99
1 file changed
+5 -1
+5 -1
View File
@@ -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);