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:
commit
97bfeadfd8
2 changed files with 12 additions and 2 deletions
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue