summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2014-05-09 00:49:03 +0000
committerNick Lewycky <nicholas@mxc.ca>2014-05-09 00:49:03 +0000
commitad1b3d1de5e873b7ad17301395be3a931adcbe41 (patch)
tree34360d59324853acddbbdeae8d3b77f944028b07
parentb32629589dd63127cff2c98b56dcc8036f311f37 (diff)
downloadbcm5719-llvm-ad1b3d1de5e873b7ad17301395be3a931adcbe41.tar.gz
bcm5719-llvm-ad1b3d1de5e873b7ad17301395be3a931adcbe41.zip
printCustom is only used in PseudoSourceValue, remove it from Value.
llvm-svn: 208383
-rw-r--r--llvm/include/llvm/IR/Value.h4
-rw-r--r--llvm/lib/IR/AsmWriter.cpp9
2 files changed, 1 insertions, 12 deletions
diff --git a/llvm/include/llvm/IR/Value.h b/llvm/include/llvm/IR/Value.h
index d50525f6c33..ad8ddc403d5 100644
--- a/llvm/include/llvm/IR/Value.h
+++ b/llvm/include/llvm/IR/Value.h
@@ -182,10 +182,6 @@ private:
Value(const Value &) LLVM_DELETED_FUNCTION;
protected:
- /// printCustom - Value subclasses can override this to implement custom
- /// printing behavior.
- virtual void printCustom(raw_ostream &O) const;
-
Value(Type *Ty, unsigned scid);
public:
virtual ~Value();
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 947e4fae41b..3e716d13d35 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/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'; }
OpenPOWER on IntegriCloud