summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-11-19 20:46:23 +0000
committerDan Gohman <gohman@apple.com>2007-11-19 20:46:23 +0000
commitaad83c8ee57a69868636a81236ba807d82e007fe (patch)
tree91774b3c5b5aabb4d4152e60ab04306c0564bb71 /llvm/lib/Target
parent67d77945e71f79e7a2d361138bd45d025acd5036 (diff)
downloadbcm5719-llvm-aad83c8ee57a69868636a81236ba807d82e007fe.tar.gz
bcm5719-llvm-aad83c8ee57a69868636a81236ba807d82e007fe.zip
Remove meaningless qualifiers from return types, avoiding compiler warnings.
llvm-svn: 44240
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.cpp2
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index 86da3d78259..a09681ab15b 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -101,7 +101,7 @@ PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS,
/// Override this for PowerPC. Tail merging happily breaks up instruction issue
/// groups, which typically degrades performance.
-const bool PPCTargetMachine::getEnableTailMergeDefault() const { return false; }
+bool PPCTargetMachine::getEnableTailMergeDefault() const { return false; }
PPC32TargetMachine::PPC32TargetMachine(const Module &M, const std::string &FS)
: PPCTargetMachine(M, FS, false) {
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.h b/llvm/lib/Target/PowerPC/PPCTargetMachine.h
index a00f8583749..b3477cc36ef 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.h
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.h
@@ -73,7 +73,7 @@ public:
bool DumpAsm, MachineCodeEmitter &MCE);
virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast,
bool DumpAsm, MachineCodeEmitter &MCE);
- virtual const bool getEnableTailMergeDefault() const;
+ virtual bool getEnableTailMergeDefault() const;
};
/// PPC32TargetMachine - PowerPC 32-bit target machine.
OpenPOWER on IntegriCloud