Two unrelated API cleanups: remove the location processing stuff from custom op
parser hooks, as it has been subsumed by a simpler and cleaner mechanism.
Second, remove the "Inst" suffixes from a few methods in CFGFuncBuilder since
they are redundant and this is inconsistent with the other builders. NFC.
PiperOrigin-RevId: 210006263
diff --git a/lib/Transforms/ConvertToCFG.cpp b/lib/Transforms/ConvertToCFG.cpp
index 50cf7d7..2f50713 100644
--- a/lib/Transforms/ConvertToCFG.cpp
+++ b/lib/Transforms/ConvertToCFG.cpp
@@ -51,7 +51,7 @@
// Creates return instruction with no operands.
// TODO: convert return operands.
- builder.createReturnInst(mlFunc->getReturnStmt()->getLoc(), {});
+ builder.createReturn(mlFunc->getReturnStmt()->getLoc(), {});
// TODO: convert ML function body.