diff options
| author | Rui Ueyama <ruiu@google.com> | 2016-11-23 18:07:33 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2016-11-23 18:07:33 +0000 |
| commit | 3fc0f7e54fb57bb5815f384c385c83ed215acfe6 (patch) | |
| tree | ec6c73153bac85151d06394290dcdf05b6a1cc5f /clang/test/OpenMP/target_data_use_device_ptr_codegen.cpp | |
| parent | a6ee9fd642a18c20acc28dcb58c639a7e4c91b8b (diff) | |
| download | bcm5719-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/OpenMP/target_data_use_device_ptr_codegen.cpp')
0 files changed, 0 insertions, 0 deletions

