diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2014-05-09 00:49:03 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2014-05-09 00:49:03 +0000 |
commit | e584911870eec079aa672a4bf2d99e899cebcea0 (patch) | |
tree | 7161a38ad8ea57bcfe2161a1b04689b0dbaed5bc /lib/IR | |
parent | 9834b9001cfe8ab3b00ce5bc041800fbd0e61d6d (diff) | |
download | llvm-e584911870eec079aa672a4bf2d99e899cebcea0.tar.gz llvm-e584911870eec079aa672a4bf2d99e899cebcea0.tar.bz2 llvm-e584911870eec079aa672a4bf2d99e899cebcea0.tar.xz |
printCustom is only used in PseudoSourceValue, remove it from Value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/AsmWriter.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/IR/AsmWriter.cpp b/lib/IR/AsmWriter.cpp index 947e4fae41..3e716d13d3 100644 --- a/lib/IR/AsmWriter.cpp +++ b/lib/IR/AsmWriter.cpp @@ -2206,9 +2206,7 @@ void Value::print(raw_ostream &ROS) const { isa<Argument>(this)) { this->printAsOperand(OS); } else { - // Otherwise we don't know what it is. Call the virtual function to - // allow a subclass to print itself. - printCustom(OS); + llvm_unreachable("Unknown value to print out!"); } } @@ -2236,11 +2234,6 @@ void Value::printAsOperand(raw_ostream &O, bool PrintType, const Module *M) cons WriteAsOperandInternal(O, this, &TypePrinter, nullptr, M); } -// Value::printCustom - subclasses should override this to implement printing. -void Value::printCustom(raw_ostream &OS) const { - llvm_unreachable("Unknown value to print out!"); -} - // Value::dump - allow easy printing of Values from the debugger. void Value::dump() const { print(dbgs()); dbgs() << '\n'; } |