summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/TimeValue.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-29 00:16:06 +0000
committerHans Wennborg <hans@hanshq.net>2014-08-29 00:16:06 +0000
commit0a20f5417c9d241f4774a49da6c7ca8123686671 (patch)
tree165bc69420de0451b623942c4778743ffdf060f9 /llvm/lib/Support/TimeValue.cpp
parent400e725bde52e5107e7394a3d5443ff6742e1325 (diff)
downloadbcm5719-llvm-0a20f5417c9d241f4774a49da6c7ca8123686671.tar.gz
bcm5719-llvm-0a20f5417c9d241f4774a49da6c7ca8123686671.zip
Better codegen support for DLL attributes being dropped after the first declaration (PR20792)
For the following code: __declspec(dllimport) int f(int x); int user(int x) { return f(x); } int f(int x) { return 1; } Clang will drop the dllimport attribute in the AST, but CodeGen would have already put it on the LLVM::Function, and that would never get updated. (The same thing happens for global variables.) This makes Clang check dropped DLL attribute case each time the LLVM object is referenced. This isn't perfect, because we will still get it wrong if the function is never referenced by codegen after the attribute is dropped, but this handles the common cases and makes us not fail in the verifier. llvm-svn: 216699
Diffstat (limited to 'llvm/lib/Support/TimeValue.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud