summaryrefslogtreecommitdiffstats
path: root/llvm/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
commite2f98ef52deebc4480c5ff078eeb2a9fe185d864 (patch)
tree5b5f29a82fa4737158c936aa97b0092300dbe21d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent726e66f734fa2165fb3469c9ee919d80c45fdff2 (diff)
downloadbcm5719-llvm-e2f98ef52deebc4480c5ff078eeb2a9fe185d864.tar.gz
bcm5719-llvm-e2f98ef52deebc4480c5ff078eeb2a9fe185d864.zip
trivial scaffolding for param attrs
llvm-svn: 36720
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 6dcc37296c1..1e899e153d2 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud