Omit now-removed Filename string arg from handleBeginSource

[ROCm/clr commit: abd34b2125]
Dieser Commit ist enthalten in:
Chris Kitching
2017-10-15 10:56:46 +01:00
Ursprung a21737be39
Commit fd9bc0d0d8
@@ -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);