mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix DeclAttribute::print support for @asmname.
Swift SVN r15431
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user