aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
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/Writer/BitcodeWriter.cpp
parent33ec5dbe3589e929d15a5fb46e5bd3e4bd66dfa9 (diff)
downloadllvm-b9ca6dcc6bd65c1d3c636e2e0cabeb56ef975e49.zip
llvm-b9ca6dcc6bd65c1d3c636e2e0cabeb56ef975e49.tar.gz
llvm-b9ca6dcc6bd65c1d3c636e2e0cabeb56ef975e49.tar.bz2
[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/Writer/BitcodeWriter.cpp')
-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 b5b79b2..845bbfb 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);