Rename the current parseSymbolName to parseOptionalSymbolName
authorRiver Riddle <riverriddle@google.com>
Wed, 13 Nov 2019 17:31:45 +0000 (09:31 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 13 Nov 2019 17:32:20 +0000 (09:32 -0800)
commit6df83699418c6a6d6105728cdec59c78212aa841
tree7368b187b45efb25e89423a4c8b588aebf24868b
parent85d7fb3324a6442e865c87ea766992ab096f8859
Rename the current parseSymbolName to parseOptionalSymbolName

The current implementation silently fails if the '@' identifier isn't present, making it similar to the 'optional' parse methods. This change renames the current implementation to 'Optional' and adds a new 'parseSymbolName' that emits an error.

PiperOrigin-RevId: 280214610
mlir/include/mlir/IR/OpImplementation.h
mlir/lib/IR/FunctionSupport.cpp
mlir/lib/IR/Module.cpp
mlir/lib/Parser/Parser.cpp
mlir/test/IR/invalid-func-op.mlir