diff options
Diffstat (limited to 'mlir/lib/IR/AsmPrinter.cpp')
-rw-r--r-- | mlir/lib/IR/AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/IR/AsmPrinter.cpp b/mlir/lib/IR/AsmPrinter.cpp index 545fd63a175..f93852da0d1 100644 --- a/mlir/lib/IR/AsmPrinter.cpp +++ b/mlir/lib/IR/AsmPrinter.cpp @@ -385,20 +385,20 @@ void ModulePrinter::printTrailingLocation(Location loc) { void ModulePrinter::printLocationInternal(Location loc, bool pretty) { switch (loc.getKind()) { - case Location::Kind::Unknown: + case Location::Kind::UnknownLocation: if (pretty) os << "[unknown]"; else os << "unknown"; break; - case Location::Kind::FileLineCol: { + case Location::Kind::FileLineColLocation: { auto fileLoc = loc.cast<FileLineColLoc>(); auto mayQuote = pretty ? "" : "\""; os << mayQuote << fileLoc.getFilename() << mayQuote << ':' << fileLoc.getLine() << ':' << fileLoc.getColumn(); break; } - case Location::Kind::Name: { + case Location::Kind::NameLocation: { auto nameLoc = loc.cast<NameLoc>(); os << '\"' << nameLoc.getName() << '\"'; @@ -411,7 +411,7 @@ void ModulePrinter::printLocationInternal(Location loc, bool pretty) { } break; } - case Location::Kind::CallSite: { + case Location::Kind::CallSiteLocation: { auto callLocation = loc.cast<CallSiteLoc>(); auto caller = callLocation.getCaller(); auto callee = callLocation.getCallee(); |