projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4ef4e4
)
Windows/DynamicLibrary.inc: Remove 'extern "C"' in ELM_Callback.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 23 Sep 2014 01:09:46 +0000
(
01:09
+0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 23 Sep 2014 01:09:46 +0000
(
01:09
+0000)
'extern "C" static' is not accepted by g++-4.7. Rather to tweak, I just removed 'extern "C"', since it doesn't affect the ABI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218290
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Windows/DynamicLibrary.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/DynamicLibrary.inc
b/lib/Support/Windows/DynamicLibrary.inc
index 95d7ba1699f0838e206d0cc26cd1cf37596332eb..241f95d55a97ce774862933134af7403f9aace3f 100644
(file)
--- a/
lib/Support/Windows/DynamicLibrary.inc
+++ b/
lib/Support/Windows/DynamicLibrary.inc
@@
-41,7
+41,7
@@
using namespace sys;
static DenseSet<HMODULE> *OpenedHandles;
-
extern "C"
static BOOL CALLBACK
+static BOOL CALLBACK
ELM_Callback(WIN32_ELMCB_PCSTR ModuleName, ULONG_PTR ModuleBase,
ULONG ModuleSize, PVOID UserContext) {
OpenedHandles->insert((HMODULE)ModuleBase);