mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Remove meaningless qualifiers from return types, avoiding compiler warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -345,7 +345,7 @@ public:
|
|||||||
|
|
||||||
/// isReachableFromEntry - Return true if A is dominated by the entry
|
/// isReachableFromEntry - Return true if A is dominated by the entry
|
||||||
/// block of the function containing it.
|
/// block of the function containing it.
|
||||||
const bool isReachableFromEntry(NodeT* A) {
|
bool isReachableFromEntry(NodeT* A) {
|
||||||
assert (!this->isPostDominator()
|
assert (!this->isPostDominator()
|
||||||
&& "This is not implemented for post dominators");
|
&& "This is not implemented for post dominators");
|
||||||
return dominates(&A->getParent()->front(), A);
|
return dominates(&A->getParent()->front(), A);
|
||||||
|
@@ -93,7 +93,7 @@ public:
|
|||||||
/// null pointer back.
|
/// null pointer back.
|
||||||
///
|
///
|
||||||
TerminatorInst *getTerminator();
|
TerminatorInst *getTerminator();
|
||||||
const TerminatorInst *const getTerminator() const;
|
const TerminatorInst *getTerminator() const;
|
||||||
|
|
||||||
/// Returns a pointer to the first instructon in this block that is not a
|
/// Returns a pointer to the first instructon in this block that is not a
|
||||||
/// PHINode instruction. When adding instruction to the beginning of the
|
/// PHINode instruction. When adding instruction to the beginning of the
|
||||||
|
@@ -187,7 +187,7 @@ public:
|
|||||||
|
|
||||||
/// getEnableTailMergeDefault - the default setting for -enable-tail-merge
|
/// getEnableTailMergeDefault - the default setting for -enable-tail-merge
|
||||||
/// on this target. User flag overrides.
|
/// on this target. User flag overrides.
|
||||||
virtual const bool getEnableTailMergeDefault() const { return true; }
|
virtual bool getEnableTailMergeDefault() const { return true; }
|
||||||
|
|
||||||
/// addPassesToEmitFile - Add passes to the specified pass manager to get the
|
/// addPassesToEmitFile - Add passes to the specified pass manager to get the
|
||||||
/// specified file emitted. Typically this will involve several steps of code
|
/// specified file emitted. Typically this will involve several steps of code
|
||||||
@@ -325,7 +325,7 @@ public:
|
|||||||
|
|
||||||
/// getEnableTailMergeDefault - the default setting for -enable-tail-merge
|
/// getEnableTailMergeDefault - the default setting for -enable-tail-merge
|
||||||
/// on this target. User flag overrides.
|
/// on this target. User flag overrides.
|
||||||
virtual const bool getEnableTailMergeDefault() const { return true; }
|
virtual bool getEnableTailMergeDefault() const { return true; }
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
@@ -101,7 +101,7 @@ PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS,
|
|||||||
|
|
||||||
/// Override this for PowerPC. Tail merging happily breaks up instruction issue
|
/// Override this for PowerPC. Tail merging happily breaks up instruction issue
|
||||||
/// groups, which typically degrades performance.
|
/// 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)
|
PPC32TargetMachine::PPC32TargetMachine(const Module &M, const std::string &FS)
|
||||||
: PPCTargetMachine(M, FS, false) {
|
: PPCTargetMachine(M, FS, false) {
|
||||||
|
@@ -73,7 +73,7 @@ public:
|
|||||||
bool DumpAsm, MachineCodeEmitter &MCE);
|
bool DumpAsm, MachineCodeEmitter &MCE);
|
||||||
virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast,
|
virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast,
|
||||||
bool DumpAsm, MachineCodeEmitter &MCE);
|
bool DumpAsm, MachineCodeEmitter &MCE);
|
||||||
virtual const bool getEnableTailMergeDefault() const;
|
virtual bool getEnableTailMergeDefault() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// PPC32TargetMachine - PowerPC 32-bit target machine.
|
/// PPC32TargetMachine - PowerPC 32-bit target machine.
|
||||||
|
@@ -134,7 +134,7 @@ TerminatorInst *BasicBlock::getTerminator() {
|
|||||||
return dyn_cast<TerminatorInst>(&InstList.back());
|
return dyn_cast<TerminatorInst>(&InstList.back());
|
||||||
}
|
}
|
||||||
|
|
||||||
const TerminatorInst *const BasicBlock::getTerminator() const {
|
const TerminatorInst *BasicBlock::getTerminator() const {
|
||||||
if (InstList.empty()) return 0;
|
if (InstList.empty()) return 0;
|
||||||
return dyn_cast<TerminatorInst>(&InstList.back());
|
return dyn_cast<TerminatorInst>(&InstList.back());
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user