mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 22:29:37 +00:00
trivial scaffolding for param attrs
llvm-svn: 36720
This commit is contained in:
parent
d5ddb11361
commit
54a0a58b82
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user