aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-02-14 01:18:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-02-14 01:18:37 +0000
commitf4187658fa824f8f24ef578377ff6c174f527021 (patch)
tree63b136d6bc5c88ec27f10ddc87734bd591873d36 /clang/lib/CodeGen/ModuleBuilder.cpp
parentb7444cd11ef1f688d91f0970f2615177af63916f (diff)
downloadllvm-f4187658fa824f8f24ef578377ff6c174f527021.zip
llvm-f4187658fa824f8f24ef578377ff6c174f527021.tar.gz
llvm-f4187658fa824f8f24ef578377ff6c174f527021.tar.bz2
Add a getLanguageLinkage method to VarDecls and FunctionDecls. Use it to fix
some cases where functions with no language linkage were being treated as having C language linkage. In particular, don't warn in extern "C" { static NonPod foo(); } Since getLanguageLinkage checks the language linkage, the linkage computation cannot use the language linkage. Break the loop by checking just the context in the linkage computation. llvm-svn: 175117
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions