Auto merge of #38195 - rkruppe:llvm-pass-name-fwdcompat, r=alexcrichton

[LLVM 4.0] test/run-make/llvm-pass/

cc #37609
This commit is contained in:
bors 2016-12-08 21:13:52 +00:00
commit 97bfeadfd8
2 changed files with 12 additions and 2 deletions

View file

@ -28,7 +28,12 @@ namespace {
bool runOnFunction(Function &F) override;
const char *getPassName() const override {
#if LLVM_VERSION_MAJOR >= 4
StringRef
#else
const char *
#endif
getPassName() const override {
return "Some LLVM pass";
}

View file

@ -27,7 +27,12 @@ namespace {
bool runOnModule(Module &M) override;
const char *getPassName() const override {
#if LLVM_VERSION_MAJOR >= 4
StringRef
#else
const char *
#endif
getPassName() const override {
return "Some LLVM pass";
}