summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-07 20:33:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-07 20:33:39 +0000
commit15b803703449f4fa0183481b17173339fa9cfa81 (patch)
treed627a95fbd4c542ee4159c0b84e598bc5d42b3da /llvm/utils
parent5583632adfc69f3fc056cacdeeb5192a1acba042 (diff)
downloadbcm5719-llvm-15b803703449f4fa0183481b17173339fa9cfa81.tar.gz
bcm5719-llvm-15b803703449f4fa0183481b17173339fa9cfa81.zip
llvm-mc/AsmMatcher: Tweaks in response to feedback.
llvm-svn: 78404
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/AsmMatcherEmitter.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index f2adc00c07d..f98ee3a0833 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -86,8 +86,8 @@
using namespace llvm;
namespace {
- cl::opt<std::string>
- MatchOneInstr("match-one-instr", cl::desc("Match only the named instruction"),
+static cl::opt<std::string>
+MatchOneInstr("match-one-instr", cl::desc("Match only the named instruction"),
cl::init(""));
}
@@ -272,18 +272,6 @@ static bool IsAssemblerInstruction(const StringRef &Name,
namespace {
-struct OperandListLess {
- bool operator()(const
- std::pair<const CodeGenInstruction::OperandInfo*, unsigned> &
- A,
- const
- std::pair<const CodeGenInstruction::OperandInfo*, unsigned> &
- B) {
- return A.first->MIOperandNo < B.first->MIOperandNo;
- }
-
-};
-
struct InstructionInfo {
struct Operand {
enum {
OpenPOWER on IntegriCloud