[llvm-commits] CVS: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
Chris Lattner
sabre at nondot.org
Thu May 3 17:45:10 PDT 2007
Changes in directory llvm/lib/Bitcode/Writer:
BitcodeWriter.cpp updated: 1.24 -> 1.25
---
Log message:
trivial scaffolding for param attrs
---
Diffs of the changes: (+12 -0)
BitcodeWriter.cpp | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff -u llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.24 llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.25
--- llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1.24 Thu May 3 17:34:03 2007
+++ llvm/lib/Bitcode/Writer/BitcodeWriter.cpp Thu May 3 19:44:52 2007
@@ -80,6 +80,15 @@
Stream.EmitRecord(Code, Vals, AbbrevToUse);
}
+// Emit information about parameter attributes.
+static void WriteParamAttrTable(const ValueEnumerator &VE,
+ BitstreamWriter &Stream) {
+ const std::vector<const ParamAttrsList*> &Attrs = VE.getParamAttrs();
+ if (Attrs.empty()) return;
+
+
+
+}
/// WriteTypeTable - Write out the type table for a module.
static void WriteTypeTable(const ValueEnumerator &VE, BitstreamWriter &Stream) {
@@ -799,6 +808,9 @@
// Analyze the module, enumerating globals, functions, etc.
ValueEnumerator VE(M);
+ // Emit information about parameter attributes.
+ WriteParamAttrTable(VE, Stream);
+
// Emit information describing all of the types in the module.
WriteTypeTable(VE, Stream);
More information about the llvm-commits
mailing list