[llvm-commits] [llvm] r142570 - /llvm/trunk/include/llvm/BasicBlock.h
Eli Friedman
eli.friedman at gmail.com
Wed Oct 19 21:33:45 PDT 2011
Author: efriedma
Date: Wed Oct 19 23:33:44 2011
New Revision: 142570
URL: http://llvm.org/viewvc/llvm-project?rev=142570&view=rev
Log:
Remove useless code.
Modified:
llvm/trunk/include/llvm/BasicBlock.h
Modified: llvm/trunk/include/llvm/BasicBlock.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BasicBlock.h?rev=142570&r1=142569&r2=142570&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BasicBlock.h (original)
+++ llvm/trunk/include/llvm/BasicBlock.h Wed Oct 19 23:33:44 2011
@@ -110,12 +110,6 @@
const Function *getParent() const { return Parent; }
Function *getParent() { return Parent; }
- /// use_back - Specialize the methods defined in Value, as we know that an
- /// BasicBlock can only be used by Users (specifically terminators
- /// and BlockAddress's).
- User *use_back() { return cast<User>(*use_begin());}
- const User *use_back() const { return cast<User>(*use_begin());}
-
/// getTerminator() - If this is a well formed basic block, then this returns
/// a pointer to the terminator instruction. If it is not, then you get a
/// null pointer back.
More information about the llvm-commits
mailing list