summaryrefslogtreecommitdiffstats
path: root/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-07-30 22:50:37 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-07-30 22:50:37 +0000
commit310f6b89b198a2e7138c401fd442c98d84e14bb2 (patch)
tree7bbb879734222e096bed5fd1755b68a343d7cb67 /lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
parentc41b58fd409a0647f14a415ed616e20d4dda4f6a (diff)
downloadbcm5719-llvm-310f6b89b198a2e7138c401fd442c98d84e14bb2.tar.gz
bcm5719-llvm-310f6b89b198a2e7138c401fd442c98d84e14bb2.zip
[TableGen] Reuse typedef across emitters (NFC)
This moves the std::map typedef into the header so it can be reused by all the emitter implementations. llvm-svn: 367363
Diffstat (limited to 'lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp')
-rw-r--r--lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
index f707b8e8d7d..9e46218935b 100644
--- a/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
+++ b/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
@@ -19,14 +19,11 @@
#include <vector>
using namespace llvm;
-
-/// Map of properties definitions to their associated records. Also makes sure
-/// our property definitions are sorted in a deterministic way.
-typedef std::map<std::string, std::vector<Record *>> RecordsByDefinition;
+using namespace lldb_private;
/// Groups all properties by their definition.
-static RecordsByDefinition getPropertyList(std::vector<Record *> Properties) {
- RecordsByDefinition result;
+static RecordsByName getPropertyList(std::vector<Record *> Properties) {
+ RecordsByName result;
for (Record *Property : Properties)
result[Property->getValueAsString("Definition").str()].push_back(Property);
return result;
OpenPOWER on IntegriCloud