Skip to content

Commit

Permalink
[LLVM 4.0] test/run-make/llvm-pass/
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Kruppe committed Dec 6, 2016
1 parent 692d7cf commit 9a3340a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/test/run-make/llvm-pass/llvm-function-pass.so.cc
Expand Up @@ -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";
}

Expand Down
7 changes: 6 additions & 1 deletion src/test/run-make/llvm-pass/llvm-module-pass.so.cc
Expand Up @@ -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";
}

Expand Down

0 comments on commit 9a3340a

Please sign in to comment.