[llvm-commits] [compiler-rt] r163707 - /compiler-rt/trunk/lib/interception/mach_override/mach_override.c
Alexander Potapenko
glider at google.com
Wed Sep 12 07:14:08 PDT 2012
Author: glider
Date: Wed Sep 12 09:14:08 2012
New Revision: 163707
URL: http://llvm.org/viewvc/llvm-project?rev=163707&view=rev
Log:
Fix compiler warnings: remove __attribute__((visibility)) for static functions, use unsigned char instead of char.
Modified:
compiler-rt/trunk/lib/interception/mach_override/mach_override.c
Modified: compiler-rt/trunk/lib/interception/mach_override/mach_override.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/mach_override/mach_override.c?rev=163707&r1=163706&r2=163707&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/mach_override/mach_override.c (original)
+++ compiler-rt/trunk/lib/interception/mach_override/mach_override.c Wed Sep 12 09:14:08 2012
@@ -50,7 +50,7 @@
#define kOriginalInstructionsSize 16
static
-char kIslandTemplate[] = {
+unsigned char kIslandTemplate[] = {
// kOriginalInstructionsSize nop instructions so that we
// should have enough space to host original instructions
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
@@ -68,7 +68,7 @@
#define kJumpAddress kOriginalInstructionsSize + 6
static
-char kIslandTemplate[] = {
+unsigned char kIslandTemplate[] = {
// kOriginalInstructionsSize nop instructions so that we
// should have enough space to host original instructions
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
@@ -112,26 +112,26 @@
allocateBranchIsland(
BranchIsland **island,
int allocateHigh,
- void *originalFunctionAddress) __attribute__((visibility("hidden")));
+ void *originalFunctionAddress);
static mach_error_t
freeBranchIsland(
- BranchIsland *island ) __attribute__((visibility("hidden")));
+ BranchIsland *island );
static mach_error_t
defaultIslandMalloc(
- void **ptr, size_t unused_size, void *hint) __attribute__((visibility("hidden")));
+ void **ptr, size_t unused_size, void *hint);
static mach_error_t
defaultIslandFree(
- void *ptr) __attribute__((visibility("hidden")));
+ void *ptr);
#if defined(__ppc__) || defined(__POWERPC__)
static mach_error_t
setBranchIslandTarget(
BranchIsland *island,
const void *branchTo,
- long instruction ) __attribute__((visibility("hidden")));
+ long instruction );
#endif
#if defined(__i386__) || defined(__x86_64__)
@@ -139,7 +139,7 @@
setBranchIslandTarget_i386(
BranchIsland *island,
const void *branchTo,
- char* instructions ) __attribute__((visibility("hidden")));
+ char* instructions );
// Can't be made static because there's no C implementation for atomic_mov64
// on i386.
void
@@ -154,7 +154,7 @@
int *howManyEaten,
char *originalInstructions,
int *originalInstructionCount,
- uint8_t *originalInstructionSizes ) __attribute__((visibility("hidden")));
+ uint8_t *originalInstructionSizes );
static void
fixupInstructions(
@@ -162,7 +162,7 @@
void *escapeIsland,
void *instructionsToFix,
int instructionCount,
- uint8_t *instructionSizes ) __attribute__((visibility("hidden")));
+ uint8_t *instructionSizes );
#ifdef DEBUG_DISASM
static void
More information about the llvm-commits
mailing list