diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 21:12:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 21:12:46 +0000 |
commit | 6334205cb5c626d2b35e42dd4c710b857bf0a126 (patch) | |
tree | 0330b254c66da59d0f34ff8c686a93053c66d3f1 /include | |
parent | 083ee69349df5bc6fc26da25acf0ba8628789589 (diff) | |
download | llvm-6334205cb5c626d2b35e42dd4c710b857bf0a126.tar.gz llvm-6334205cb5c626d2b35e42dd4c710b857bf0a126.tar.bz2 llvm-6334205cb5c626d2b35e42dd4c710b857bf0a126.tar.xz |
Allow TargetMachine to refuse static code gen
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetMachine.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 16bb97f000..860d67eeae 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -51,7 +51,7 @@ protected: ShortAl, ByteAl) { } public: virtual ~TargetMachine() {} - + // // Interfaces to the major aspects of target machine information: // -- Instruction opcode and operand information @@ -74,9 +74,12 @@ public: /// addPassesToEmitAssembly - Add passes to the specified pass manager to get /// assembly langage code emited. Typically this will involve several steps - /// of code generation. + /// of code generation. This method should return true if code generation is + /// not supported. /// - virtual void addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) = 0; + virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) { + return true; + } /// addPassesToJITCompile - Add passes to the specified pass manager to /// implement a fast dynamic compiler for this target. Return true if this is |