Fix DeclAttribute::print support for @asmname.

Swift SVN r15431
This commit is contained in:
Ted Kremenek
2014-03-25 00:20:17 +00:00
parent 3673fde994
commit c8c4e83c15

View File

@@ -99,11 +99,12 @@ void DeclAttributes::print(ASTPrinter &Printer) const {
void DeclAttribute::print(ASTPrinter &Printer) const {
switch (getKind()) {
case DAK_asmname:
Printer << "@asmname=\"" << cast<AsmnameAttr>(this)->Name << "\" ";
Printer << "@asmname(\"" << cast<AsmnameAttr>(this)->Name << "\")";
break;
case DAK_Count:
llvm_unreachable("exceed declaration attribute kinds");
}
Printer << ' ';
}
void DeclAttribute::print(llvm::raw_ostream &OS) const {