going from a SYMBOL_REF to a decl node
Mike Stump
mrs@windriver.com
Mon Apr 3 19:14:00 GMT 2000
> From: Zack Weinberg <zack@wolery.cumb.org>
> Date: Mon, 3 Apr 2000 19:04:24 -0700
> To: gcc@gcc.gnu.org
> Is there any way to go from a SYMBOL_REF rtx to the declaration it
> refers to? For example, given this insn:
> (call_insn/j 10 18 11 (call (mem:QI (symbol_ref:SI ("abort")) 0)
> (const_int 0 [0x0])) -1 (nil)
> I want to be able to dig up the tree for <abort>.
Sure, just check out the symbol table? :-) You didn't expect a harder
answer did you? No, I don't think there is an easier answer, either.
More information about the Gcc
mailing list