diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-19 00:34:35 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-19 00:34:35 +0000 | 
| commit | 918be520dc4da4ffbcf02c858adc243293dbdc29 (patch) | |
| tree | 303f83eac68eb6742ac1448a90972dc8315b830d /llvm/utils/TableGen/InstrEnumEmitter.cpp | |
| parent | 1734e47d200fc75e5d044771441470ac0174609e (diff) | |
| download | bcm5719-llvm-918be520dc4da4ffbcf02c858adc243293dbdc29.tar.gz bcm5719-llvm-918be520dc4da4ffbcf02c858adc243293dbdc29.zip  | |
change Target.getInstructionsByEnumValue to return a reference
to a vector that CGT stores instead of synthesizing it on every 
call.
llvm-svn: 98910
Diffstat (limited to 'llvm/utils/TableGen/InstrEnumEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/InstrEnumEmitter.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/InstrEnumEmitter.cpp b/llvm/utils/TableGen/InstrEnumEmitter.cpp index d1e7f3dd35d..4162107bce9 100644 --- a/llvm/utils/TableGen/InstrEnumEmitter.cpp +++ b/llvm/utils/TableGen/InstrEnumEmitter.cpp @@ -40,8 +40,8 @@ void InstrEnumEmitter::run(raw_ostream &OS) {      exit(1);    } -  std::vector<const CodeGenInstruction*> NumberedInstructions; -  Target.getInstructionsByEnumValue(NumberedInstructions); +  const std::vector<const CodeGenInstruction*> &NumberedInstructions = +    Target.getInstructionsByEnumValue();    OS << "namespace " << Namespace << " {\n";    OS << "  enum {\n";  | 

