diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-17 00:18:50 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-17 00:18:50 +0000 |
commit | 8505931ad7cc2928b51f2b39556faf1cf10f1498 (patch) | |
tree | 1c077bcd3965d1e954aabcae14e7bacf373670a5 /libjava/include | |
parent | fa9d8470a98472ba4d66de53110e6ccac200356d (diff) | |
download | gcc-8505931ad7cc2928b51f2b39556faf1cf10f1498.tar.gz |
* link.cc (ensure_class_linked): Removed #ifdef.
(print_class_loaded): Likewise.
(wait_for_state): Likewise.
* java/lang/Class.h (_Jv_IsInterpretedClass): Always declare.
* include/jvm.h (_Jv_IsInterpretedClass): Moved from...
* include/java-interp.h: ... here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
-rw-r--r-- | libjava/include/java-interp.h | 8 | ||||
-rw-r--r-- | libjava/include/jvm.h | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/libjava/include/java-interp.h b/libjava/include/java-interp.h index 569286116ee..061520013d7 100644 --- a/libjava/include/java-interp.h +++ b/libjava/include/java-interp.h @@ -1,6 +1,6 @@ // java-interp.h - Header file for the bytecode interpreter. -*- c++ -*- -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation +/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation This file is part of libgcj. @@ -32,12 +32,6 @@ extern "C" { #include <ffi.h> } -extern inline jboolean -_Jv_IsInterpretedClass (jclass c) -{ - return (c->accflags & java::lang::reflect::Modifier::INTERPRETED) != 0; -} - struct _Jv_ResolvedMethod; void _Jv_InitInterpreter (); diff --git a/libjava/include/jvm.h b/libjava/include/jvm.h index 4dfdb4d3767..62347880bb6 100644 --- a/libjava/include/jvm.h +++ b/libjava/include/jvm.h @@ -572,4 +572,13 @@ _Jv_CheckABIVersion (unsigned long value) || value == (GCJ_VERSION + GCJ_BINARYCOMPAT_ADDITION)); } +// It makes the source cleaner if we simply always define this +// function. If the interpreter is not built, it will never return +// 'true'. +extern inline jboolean +_Jv_IsInterpretedClass (jclass c) +{ + return (c->accflags & java::lang::reflect::Modifier::INTERPRETED) != 0; +} + #endif /* __JAVA_JVM_H__ */ |