Omit now-removed Filename string arg from handleBeginSource

[ROCm/hip commit: 7ae6a10c99]
Cette révision appartient à :
Chris Kitching
2017-10-15 10:56:46 +01:00
Parent b2ac8756fc
révision 2584387bfc
+5 -1
Voir le fichier
@@ -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);