[LLVM 4.0] test/run-make/llvm-pass/
This commit is contained in:
parent
692d7cfb0c
commit
9a3340a048
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