summaryrefslogtreecommitdiffstats
path: root/vm/compiler/codegen/CompilerCodegen.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/compiler/codegen/CompilerCodegen.h')
-rw-r--r--vm/compiler/codegen/CompilerCodegen.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/vm/compiler/codegen/CompilerCodegen.h b/vm/compiler/codegen/CompilerCodegen.h
index 8223d2a9f..2e3b10749 100644
--- a/vm/compiler/codegen/CompilerCodegen.h
+++ b/vm/compiler/codegen/CompilerCodegen.h
@@ -19,10 +19,6 @@
#include "compiler/CompilerIR.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Maximal number of switch cases to have inline chains */
#define MAX_CHAINED_SWITCH_CASES 64
@@ -39,7 +35,7 @@ void dvmCompilerMethodMIR2LIR(CompilationUnit *cUnit);
void dvmCompilerAssembleLIR(CompilationUnit *cUnit, JitTranslationInfo *info);
/* Perform translation chain operation. */
-void* dvmJitChain(void* tgtAddr, u4* branchAddr);
+extern "C" void* dvmJitChain(void* tgtAddr, u4* branchAddr);
/* Install class objects in the literal pool */
void dvmJitInstallClassObjectPointers(CompilationUnit *cUnit,
@@ -75,8 +71,4 @@ int dvmCompilerTargetOptHint(int key);
/* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
void dvmCompilerGenMemBarrier(CompilationUnit *cUnit, int barrierKind);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _DALVIK_VM_COMPILERCODEGEN_H_ */