diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2010-11-14 17:35:41 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2010-11-14 17:35:41 +0000 |
commit | 6059a197c0ef4760d680973c9fa10459b1746b8c (patch) | |
tree | 3da22b798cab9912a8984d2e5581d6c1cebc7705 /lib/Module/Passes.h | |
parent | 74ef9ab52bd440187dd21a898c60b9dec792be4a (diff) | |
download | klee-6059a197c0ef4760d680973c9fa10459b1746b8c.tar.gz |
On LLVM 2.9+, use TargetLowering::ExpandInlineAsm to expand asm code
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@119046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module/Passes.h')
-rw-r--r-- | lib/Module/Passes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Module/Passes.h b/lib/Module/Passes.h index f9454ffd..2b1ea9bc 100644 --- a/lib/Module/Passes.h +++ b/lib/Module/Passes.h @@ -23,6 +23,7 @@ namespace llvm { class Instruction; class Module; class TargetData; + class TargetLowering; class Type; } @@ -33,6 +34,10 @@ namespace klee { class RaiseAsmPass : public llvm::ModulePass { static char ID; +#if (LLVM_VERSION_MAJOR == 2 && LLVM_VERSION_MINOR >= 9) + const llvm::TargetLowering *TLI; +#endif + llvm::Function *getIntrinsic(llvm::Module &M, unsigned IID, const llvm::Type **Tys, |