AsmWriter/Bitcode: MDSubrange

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229003 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2015-02-13 01:10:38 +00:00
parent 7473485c0f
commit b984c49449
11 changed files with 119 additions and 9 deletions

View File

@@ -1347,10 +1347,16 @@ static void writeMDLocation(raw_ostream &Out, const MDLocation *DL,
Out << ")";
}
static void writeMDSubrange(raw_ostream &, const MDSubrange *, TypePrinting *,
SlotTracker *, const Module *) {
llvm_unreachable("write not implemented");
static void writeMDSubrange(raw_ostream &Out, const MDSubrange *N,
TypePrinting *, SlotTracker *, const Module *) {
Out << "!MDSubrange(";
FieldSeparator FS;
Out << FS << "count: " << N->getCount();
if (N->getLo())
Out << FS << "lowerBound: " << N->getLo();
Out << ")";
}
static void writeMDEnumerator(raw_ostream &, const MDEnumerator *,
TypePrinting *, SlotTracker *, const Module *) {
llvm_unreachable("write not implemented");