diff options
author | Jim Laskey <jlaskey@mac.com> | 2005-10-26 17:49:21 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2005-10-26 17:49:21 +0000 |
commit | 6c302fc0757c20a6de52a788ffc675e5c5980971 (patch) | |
tree | 36f15ad162e8da09b8fabdf6c779636207d42f33 | |
parent | 641b64aa4b493bd349eca4f38e278ca90ad34758 (diff) | |
download | external_llvm-6c302fc0757c20a6de52a788ffc675e5c5980971.zip external_llvm-6c302fc0757c20a6de52a788ffc675e5c5980971.tar.gz external_llvm-6c302fc0757c20a6de52a788ffc675e5c5980971.tar.bz2 |
Simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24015 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/TableGen/SubtargetEmitter.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 5739a6a..30d27c1 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -182,12 +182,7 @@ void SubtargetEmitter::ParseFeaturesFunction(std::ostream &OS) { // SubtargetEmitter::run - Main subtarget enumeration emitter. // void SubtargetEmitter::run(std::ostream &OS) { - std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target"); - if (Targets.size() == 0) - throw std::string("ERROR: No 'Target' subclasses defined!"); - if (Targets.size() != 1) - throw std::string("ERROR: Multiple subclasses of Target defined!"); - Target = Targets[0]->getName(); + Target = CodeGenTarget().getName(); EmitSourceFileHeader("Subtarget Enumeration Source Fragment", OS); |