aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/TableGen/JSONBackend.cpp
diff options
context:
space:
mode:
authorPaul C. Anagnostopoulos <paul@windfall.com>2020-11-24 13:09:02 -0500
committerPaul C. Anagnostopoulos <paul@windfall.com>2020-12-03 10:19:11 -0500
commit415fab6f67b4db59abe533130272d55b4efbf0cb (patch)
tree236fbadcc66076984340ae2c532d1f08618f4855 /llvm/lib/TableGen/JSONBackend.cpp
parent1365718778b4ce05587afa22835282c5d3f835b7 (diff)
downloadllvm-415fab6f67b4db59abe533130272d55b4efbf0cb.zip
llvm-415fab6f67b4db59abe533130272d55b4efbf0cb.tar.gz
llvm-415fab6f67b4db59abe533130272d55b4efbf0cb.tar.bz2
[TableGen] Eliminate the 'code' type
Update the documentation. Rework various backends that relied on the code type. Differential Revision: https://reviews.llvm.org/D92269
Diffstat (limited to 'llvm/lib/TableGen/JSONBackend.cpp')
-rw-r--r--llvm/lib/TableGen/JSONBackend.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/TableGen/JSONBackend.cpp b/llvm/lib/TableGen/JSONBackend.cpp
index 196644c..ea82934 100644
--- a/llvm/lib/TableGen/JSONBackend.cpp
+++ b/llvm/lib/TableGen/JSONBackend.cpp
@@ -59,8 +59,6 @@ json::Value JSONEmitter::translateInit(const Init &I) {
return Int->getValue();
} else if (auto *Str = dyn_cast<StringInit>(&I)) {
return Str->getValue();
- } else if (auto *Code = dyn_cast<CodeInit>(&I)) {
- return Code->getValue();
} else if (auto *List = dyn_cast<ListInit>(&I)) {
json::Array array;
for (auto val : *List)