summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-04-17 17:37:33 +0000
committerCraig Topper <craig.topper@gmail.com>2016-04-17 17:37:33 +0000
commit6ff46266d1071e3330506470ab91f4d6873ac0a4 (patch)
tree8bb51de6a8a4be37a74deb0ef1d6429527c3dd83 /llvm/lib/Target/BPF
parent5e9e8ac4326b28ff5cc582f14c955391793a7e19 (diff)
downloadbcm5719-llvm-6ff46266d1071e3330506470ab91f4d6873ac0a4.tar.gz
bcm5719-llvm-6ff46266d1071e3330506470ab91f4d6873ac0a4.zip
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
Diffstat (limited to 'llvm/lib/Target/BPF')
-rw-r--r--llvm/lib/Target/BPF/BPFISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
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:
OpenPOWER on IntegriCloud