summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2015-11-10 20:13:15 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2015-11-10 20:13:15 +0000
commitb9ca6dcc6bd65c1d3c636e2e0cabeb56ef975e49 (patch)
treeb2125004190113c1f2e7a28edaaf7f5c08e04602 /llvm/lib/Bitcode
parent33ec5dbe3589e929d15a5fb46e5bd3e4bd66dfa9 (diff)
downloadbcm5719-llvm-b9ca6dcc6bd65c1d3c636e2e0cabeb56ef975e49.tar.gz
bcm5719-llvm-b9ca6dcc6bd65c1d3c636e2e0cabeb56ef975e49.zip
[OperandBundles] Identify operand bundles with both their names and IDs
No code uses this functionality yet. This change just exposes information / structure that was already present. llvm-svn: 252644
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index b5b79b26873..845bbfb8d36 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -1739,7 +1739,7 @@ static void WriteOperandBundles(BitstreamWriter &Stream, ImmutableCallSite CS,
for (unsigned i = 0, e = CS.getNumOperandBundles(); i != e; ++i) {
const auto &Bundle = CS.getOperandBundleAt(i);
- Record.push_back(C.getOperandBundleTagID(Bundle.Tag));
+ Record.push_back(C.getOperandBundleTagID(Bundle.getTagName()));
for (auto &Input : Bundle.Inputs)
PushValueAndType(Input, InstID, Record, VE);
OpenPOWER on IntegriCloud