summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SparcV9
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-08 02:11:51 +0000
committerChris Lattner <sabre@nondot.org>2005-11-08 02:11:51 +0000
commitb28f2140331aed7da8129c124e1389bd0fe539b7 (patch)
treea5529ecf57aaf347a8043f345e6f8c343f22c41e /llvm/lib/Target/SparcV9
parent1d2f26adcc6b8cf88d268ad5896700ee1c96a897 (diff)
downloadbcm5719-llvm-b28f2140331aed7da8129c124e1389bd0fe539b7.tar.gz
bcm5719-llvm-b28f2140331aed7da8129c124e1389bd0fe539b7.zip
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 -O0style of build.
llvm-svn: 24233
Diffstat (limited to 'llvm/lib/Target/SparcV9')
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp3
-rw-r--r--llvm/lib/Target/SparcV9/SparcV9TargetMachine.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 5cf46e0cea9..0748018682d 100644
--- a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -162,7 +162,8 @@ SparcV9TargetMachine::SparcV9TargetMachine(const Module &M,
///
bool
SparcV9TargetMachine::addPassesToEmitFile(PassManager &PM, std::ostream &Out,
- CodeGenFileType FileType) {
+ CodeGenFileType FileType,
+ bool Fast) {
if (FileType != TargetMachine::AssemblyFile) return true;
// FIXME: Implement efficient support for garbage collection intrinsics.
diff --git a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.h b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.h
index 9f40339256a..1f832825b2a 100644
--- a/llvm/lib/Target/SparcV9/SparcV9TargetMachine.h
+++ b/llvm/lib/Target/SparcV9/SparcV9TargetMachine.h
@@ -45,7 +45,7 @@ public:
}
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
- CodeGenFileType FileType);
+ CodeGenFileType FileType, bool Fast);
virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
MachineCodeEmitter &MCE);
OpenPOWER on IntegriCloud