summaryrefslogtreecommitdiffstats
path: root/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-04 00:44:52 +0000
committerChris Lattner <sabre@nondot.org>2007-05-04 00:44:52 +0000
commit62bbeea8ea526ffe20226c82a17ab51b7efa4a7e (patch)
tree7d4acb788fd752d7c978a8aef22b31b79cd539f5 /lib/Bitcode/Writer/BitcodeWriter.cpp
parent8535072e8843fe7cf955abb35f9b6aa7e2652835 (diff)
downloadexternal_llvm-62bbeea8ea526ffe20226c82a17ab51b7efa4a7e.zip
external_llvm-62bbeea8ea526ffe20226c82a17ab51b7efa4a7e.tar.gz
external_llvm-62bbeea8ea526ffe20226c82a17ab51b7efa4a7e.tar.bz2
trivial scaffolding for param attrs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36720 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--lib/Bitcode/Writer/BitcodeWriter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp
index 6dcc372..1e899e1 100644
--- a/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -80,6 +80,15 @@ static void WriteStringRecord(unsigned Code, const std::string &Str,
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 @@ static void WriteModule(const Module *M, BitstreamWriter &Stream) {
// 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);