hanchenye-llvm-project/clang/test/CodeGenObjCXX
Nico Weber bdc969839a Include translation unit filename in global ctor symbol names.
This makes it easier to see where a global ctor comes from, and it also makes
ASan's init order analyzer output easier to understand.  gcc does this too,
but only in -fPIC mode for some reason.  Don't do this for constructors with
explicit init priority.

Also prepend "sub_" before the 'I', that way regular constructors stay
lexicographically after symbols with init priority (because
ord('s') > ord('I')).  gold seems to ignore the name of constructor symbols,
and ld only looks at the symbol if it includes an init priority, which this
patch doesn't change.

Before: __GLOBAL_I_a
Now: __GLOBAL_sub_I_myfile.cc
llvm-svn: 208128
2014-05-06 20:32:45 +00:00
..
Inputs
2007-10-03-MetadataPointers.mm
2010-08-04-Template.mm
2010-08-06-X.Y-syntax.mm
address-safety-attr.mm
arc-attrs.mm
arc-blocks.mm Use private linkage for globals we already name with \01L and \01l. 2014-02-27 19:01:11 +00:00
arc-cxx11-member-init.mm Objective-C++ IRGen. Due to change to AST for initialization of c++11’s 2014-03-14 15:40:54 +00:00
arc-exceptions.mm
arc-globals.mm Include translation unit filename in global ctor symbol names. 2014-05-06 20:32:45 +00:00
arc-mangle.mm Remove the -cxx-abi command-line flag. 2014-01-14 19:35:09 +00:00
arc-move.mm
arc-new-delete.mm
arc-pseudo-destructors.mm
arc-references.mm
arc-returns-inner-reference-ptr.mm
arc-special-member-functions.mm
arc.mm
block-in-template-inst.mm
block-var-layout.mm
blocks.mm
catch-id-type.mm
copy.mm
copyable-property-object.mm
debug-info.mm
encode.mm Use private linkage for globals we already name with \01L and \01l. 2014-02-27 19:01:11 +00:00
exceptions-legacy.mm
exceptions.mm
externally-initialized-selectors.mm Use private linkage for globals we already name with \01L and \01l. 2014-02-27 19:01:11 +00:00
foreach-statement.mm
gc.mm
implementation-in-extern-c.mm
implicit-copy-assign-operator.mm
implicit-copy-constructor.mm
ivar-objects.mm
lambda-expressions.mm Use private linkage for globals we already name with \01L and \01l. 2014-02-27 19:01:11 +00:00
literals.mm
lvalue-reference-getter.mm
mangle-blocks.mm
mangle.mm
message-reference.mm
message.mm
method-local-extern-mangle.mm
microsoft-abi-arc-param-order.mm [ms-cxxabi] Use inalloca on win32 when passing non-trivial C++ objects 2014-02-01 00:04:45 +00:00
nrvo.mm
objc-container-subscripting-1.mm
objc-container-subscripting.mm
pr14474-gline-tables-only.mm
property-derived-to-base-conv.mm
property-dot-copy.mm
property-dot-reference.mm
property-lvalue-capture.mm Objective-C properties. Fixes a crash in Sema where RHS of 2014-03-06 00:34:05 +00:00
property-object-conditional-exp.mm
property-object-reference-1.mm
property-object-reference-2.mm
property-object-reference.mm
property-objects.mm
property-reference.mm
refence-assign-write-barrier.mm
references.mm
rtti.mm type_info objects are not unnamed_addr: the ABI requires us to 2014-02-08 03:26:05 +00:00
selector-expr-lvalue.mm
unknown-anytype.mm
write-barrier-global-assign.mm