summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit-errors.c
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-11-23 18:07:33 +0000
committerRui Ueyama <ruiu@google.com>2016-11-23 18:07:33 +0000
commit3fc0f7e54fb57bb5815f384c385c83ed215acfe6 (patch)
treeec6c73153bac85151d06394290dcdf05b6a1cc5f /clang/test/FixIt/fixit-errors.c
parenta6ee9fd642a18c20acc28dcb58c639a7e4c91b8b (diff)
downloadbcm5719-llvm-3fc0f7e54fb57bb5815f384c385c83ed215acfe6.tar.gz
bcm5719-llvm-3fc0f7e54fb57bb5815f384c385c83ed215acfe6.zip
Define toString() as a generic function to get a string for error message.
We have different functions to stringize objects to construct error messages. For InputFile, we have getFilename, and for InputSection, we have getName. You had to memorize them. I think this is the case where the function overloading comes in handy. This patch defines toString() functions that are overloaded for all these types, so that you just call it in error(). Differential Revision: https://reviews.llvm.org/D27030 llvm-svn: 287787
Diffstat (limited to 'clang/test/FixIt/fixit-errors.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud