summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-07-20 22:58:01 +0000
committerTim Northover <tnorthover@apple.com>2016-07-20 22:58:01 +0000
commitcffc0d20fbc19636be1875814df148fd97d20c59 (patch)
tree042e8db7636e40488403e68ddb6826b89d5e5c45 /llvm/utils
parent986330c190fdecfe608b20449ba27491080afeba (diff)
downloadbcm5719-llvm-cffc0d20fbc19636be1875814df148fd97d20c59.tar.gz
bcm5719-llvm-cffc0d20fbc19636be1875814df148fd97d20c59.zip
GlobalISel: Remove explicit enumerator values from .def file.
They were all auto-incremented from 0 anyway, and I'm getting really annoying conflicts and runtime failures when different people add more for GlobalISel (and even when I'm refactoring my own patches). NFC. llvm-svn: 276204
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/CodeGenTarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/CodeGenTarget.cpp b/llvm/utils/TableGen/CodeGenTarget.cpp
index 245b9eeeed8..13c8c12a6c0 100644
--- a/llvm/utils/TableGen/CodeGenTarget.cpp
+++ b/llvm/utils/TableGen/CodeGenTarget.cpp
@@ -301,7 +301,7 @@ GetInstByName(const char *Name,
/// their enum value.
void CodeGenTarget::ComputeInstrsByEnum() const {
static const char *const FixedInstrs[] = {
-#define HANDLE_TARGET_OPCODE(OPC, NUM) #OPC,
+#define HANDLE_TARGET_OPCODE(OPC) #OPC,
#include "llvm/Target/TargetOpcodes.def"
nullptr};
const auto &Insts = getInstructions();
OpenPOWER on IntegriCloud