mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
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:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user