llvm.org GIT mirror llvm / 50cdabc
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 Dan Gohman 11 years ago
6 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
344344
345345 /// isReachableFromEntry - Return true if A is dominated by the entry
346346 /// block of the function containing it.
347 const bool isReachableFromEntry(NodeT* A) {
347 bool isReachableFromEntry(NodeT* A) {
348348 assert (!this->isPostDominator()
349349 && "This is not implemented for post dominators");
350350 return dominates(&A->getParent()->front(), A);
9292 /// null pointer back.
9393 ///
9494 TerminatorInst *getTerminator();
95 const TerminatorInst *const getTerminator() const;
95 const TerminatorInst *getTerminator() const;
9696
9797 /// Returns a pointer to the first instructon in this block that is not a
9898 /// PHINode instruction. When adding instruction to the beginning of the
186186
187187 /// getEnableTailMergeDefault - the default setting for -enable-tail-merge
188188 /// on this target. User flag overrides.
189 virtual const bool getEnableTailMergeDefault() const { return true; }
189 virtual bool getEnableTailMergeDefault() const { return true; }
190190
191191 /// addPassesToEmitFile - Add passes to the specified pass manager to get the
192192 /// specified file emitted. Typically this will involve several steps of code
324324
325325 /// getEnableTailMergeDefault - the default setting for -enable-tail-merge
326326 /// on this target. User flag overrides.
327 virtual const bool getEnableTailMergeDefault() const { return true; }
327 virtual bool getEnableTailMergeDefault() const { return true; }
328328 };
329329
330330 } // End llvm namespace
100100
101101 /// Override this for PowerPC. Tail merging happily breaks up instruction issue
102102 /// groups, which typically degrades performance.
103 const bool PPCTargetMachine::getEnableTailMergeDefault() const { return false; }
103 bool PPCTargetMachine::getEnableTailMergeDefault() const { return false; }
104104
105105 PPC32TargetMachine::PPC32TargetMachine(const Module &M, const std::string &FS)
106106 : PPCTargetMachine(M, FS, false) {
7272 bool DumpAsm, MachineCodeEmitter &MCE);
7373 virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast,
7474 bool DumpAsm, MachineCodeEmitter &MCE);
75 virtual const bool getEnableTailMergeDefault() const;
75 virtual bool getEnableTailMergeDefault() const;
7676 };
7777
7878 /// PPC32TargetMachine - PowerPC 32-bit target machine.
133133 return dyn_cast(&InstList.back());
134134 }
135135
136 const TerminatorInst *const BasicBlock::getTerminator() const {
136 const TerminatorInst *BasicBlock::getTerminator() const {
137137 if (InstList.empty()) return 0;
138138 return dyn_cast(&InstList.back());
139139 }