[llvm] r218290 - Windows/DynamicLibrary.inc: Remove 'extern "C"' in ELM_Callback.
NAKAMURA Takumi
geek4civic at gmail.com
Mon Sep 22 18:09:46 PDT 2014
Author: chapuni
Date: Mon Sep 22 20:09:46 2014
New Revision: 218290
URL: http://llvm.org/viewvc/llvm-project?rev=218290&view=rev
Log:
Windows/DynamicLibrary.inc: Remove 'extern "C"' in ELM_Callback.
'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.
Modified:
llvm/trunk/lib/Support/Windows/DynamicLibrary.inc
Modified: llvm/trunk/lib/Support/Windows/DynamicLibrary.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/DynamicLibrary.inc?rev=218290&r1=218289&r2=218290&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/DynamicLibrary.inc (original)
+++ llvm/trunk/lib/Support/Windows/DynamicLibrary.inc Mon Sep 22 20:09:46 2014
@@ -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);
More information about the llvm-commits
mailing list