aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetMachine.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-08 02:12:47 +0000
committerChris Lattner <sabre@nondot.org>2005-11-08 02:12:47 +0000
commitdf2e425f2a3b64eb17be927539cd39cb1f1c5f77 (patch)
tree8f32ec62c2107d0bf7fa11417191670e5bbce1b6 /include/llvm/Target/TargetMachine.h
parent178e0c41ce22160e6a1005420a52c29162dd87d3 (diff)
downloadexternal_llvm-df2e425f2a3b64eb17be927539cd39cb1f1c5f77.zip
external_llvm-df2e425f2a3b64eb17be927539cd39cb1f1c5f77.tar.gz
external_llvm-df2e425f2a3b64eb17be927539cd39cb1f1c5f77.tar.bz2
Add a new option to indicate we want the code generator to emit code quickly,
not spending tons of time microoptimizing it. This is useful for an -O0 style of build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24235 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetMachine.h')
-rw-r--r--include/llvm/Target/TargetMachine.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index aae7d90..d13a4ed 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -143,11 +143,12 @@ public:
/// addPassesToEmitFile - Add passes to the specified pass manager to get
/// the specified file emitted. Typically this will involve several steps of
- /// code generation. This method should return true if emission of this file
- /// type is not supported.
+ /// code generation. If Fast is set to true, the code generator should emit
+ /// code as fast as possible, without regard for compile time. This method
+ /// should return true if emission of this file type is not supported.
///
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
- CodeGenFileType FileType) {
+ CodeGenFileType FileType, bool Fast) {
return true;
}