-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid assembly generated with DWARF2 and Obj-C GC #1385
Comments
Jim, please take a look at this. This is most likely due to not using the Mangler interface when generating -Chris |
Mark would you attach your objc_instance.s. |
Index: lib/CodeGen/AsmPrinter.cpp==== /// getGlobalLinkName - Returns the asm/link name of of the specified
// EmitAlignment - Emit an alignment directive to the specified power of two. |
Thanks for the quick fix Jim. |
mentioned in issue llvm/llvm-bugzilla-archive#1504 |
[flang] Add lowering of EXIT intrinsic
Extended Description
To reproduce:
-- objc_instance.m --
namespace {
class JSValue {
~JSValue();
};
JSValue::~JSValue()
{
}
}
$ llvm-gcc -save-temps -fobjc-gc -gdwarf-2 -c objc_instance.m
objc_instance.s:168:Rest of line ignored. 1st junk character valued 1 ().
$ head -n 168 objc_instance.s | tail -n 1 | xxd
0000000: 092e 6c6f 6e67 095f 014c 5f4f 424a 435f ..long..L_OBJC
0000010: 494d 4147 455f 494e 464f 0a IMAGE_INFO.
$
It appears that 0x01 has snuck into the symbol name between the _ and L in _L_OBJC_IMAGE_INFO.
The text was updated successfully, but these errors were encountered: