diff options
author | Greg Clayton <gclayton@apple.com> | 2015-04-06 17:14:02 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-04-06 17:14:02 +0000 |
commit | b23c24c2a84bbc367240fc1eaf17863320793200 (patch) | |
tree | 0cc5e30ca5ef14e61eeae94097c706988e1f50f5 /clang/lib/Basic/SourceManager.cpp | |
parent | 936c56393c99e9268e787baee382614c1df12451 (diff) | |
download | llvm-b23c24c2a84bbc367240fc1eaf17863320793200.zip llvm-b23c24c2a84bbc367240fc1eaf17863320793200.tar.gz llvm-b23c24c2a84bbc367240fc1eaf17863320793200.tar.bz2 |
We have an issue where if you use a C function right now that has no prototype, it isn't marked as extern "C" and the name to lookup is some C++ mangled form of the name.
This used to be the case for "printf" before a function prototype was added to the builtin expression prefix file. This fix makes sure that if we get a mangled name that we don't find in the current target, that we only fall back to looking up function by basename if the function isn't contained in a namespace or class (no decl context).
llvm-svn: 234178
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions