diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-02-14 01:18:37 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-02-14 01:18:37 +0000 |
commit | f4187658fa824f8f24ef578377ff6c174f527021 (patch) | |
tree | 63b136d6bc5c88ec27f10ddc87734bd591873d36 /clang/lib/CodeGen/ModuleBuilder.cpp | |
parent | b7444cd11ef1f688d91f0970f2615177af63916f (diff) | |
download | llvm-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