From 6ff46266d1071e3330506470ab91f4d6873ac0a4 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 17 Apr 2016 17:37:33 +0000 Subject: Declare MVT::SimpleValueType as an int8_t sized enum. This removes 400 bytes from TargetLoweringBase and probably other places. This required changing several places to print VT enums as strings instead of raw ints since the proper method to use to print became ambiguous. This is probably an improvement anyway. This also appears to save ~8K from an x86 self host build of llc. llvm-svn: 266562 --- llvm/lib/Target/BPF/BPFISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Target/BPF') diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp index 751527b2c6c..5547569cec2 100644 --- a/llvm/lib/Target/BPF/BPFISelLowering.cpp +++ b/llvm/lib/Target/BPF/BPFISelLowering.cpp @@ -175,7 +175,7 @@ SDValue BPFTargetLowering::LowerFormalArguments( switch (RegVT.getSimpleVT().SimpleTy) { default: { errs() << "LowerFormalArguments Unhandled argument type: " - << RegVT.getSimpleVT().SimpleTy << '\n'; + << RegVT.getEVTString() << '\n'; llvm_unreachable(0); } case MVT::i64: -- cgit v1.2.3