Go to file
Ulrich Weigand 3e1860150d PowerPC: Simplify handling of fixups.
MCTargetDesc/PPCMCCodeEmitter.cpp current has code like:

 if (isSVR4ABI() && is64BitMode())
   Fixups.push_back(MCFixup::Create(0, MO.getExpr(),
                                    (MCFixupKind)PPC::fixup_ppc_toc16));
 else
   Fixups.push_back(MCFixup::Create(0, MO.getExpr(),
                                    (MCFixupKind)PPC::fixup_ppc_lo16));

This is a problem for the asm parser, since it requires knowledge of
the ABI / 64-bit mode to be set up.  However, more fundamentally,
at this point we shouldn't make such distinctions anyway; in an assembler
file, it always ought to be possible to e.g. generate TOC relocations even
when the main ABI is one that doesn't use TOC.

Fortunately, this is actually completely unnecessary; that code was added
to decide whether to generate TOC relocations, but that information is in
fact already encoded in the VariantKind of the underlying symbol.

This commit therefore merges those fixup types into one, and then decides
which relocation to use based on the VariantKind.

No changes in generated code.

llvm-svn: 178007
2013-03-26 10:56:47 +00:00
clang Actually mark ASan-unfriendly test as XFAIL 2013-03-26 08:45:29 +00:00
clang-tools-extra Added simple regression test for modularize. 2013-03-26 01:18:28 +00:00
compiler-rt [libsanitizer] Unmapping the old cache partially invalidates the memory layout, so add 2013-03-26 10:34:37 +00:00
debuginfo-tests Remove IR scenario tests. 2013-03-15 20:52:10 +00:00
libclc Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
libcxx Added debug tests for indexing, pop_back and both forms of erase. Added an improved error message for erasing a single element with end(). 2013-03-25 22:12:26 +00:00
libcxxabi Bruce Mitchener: Typo fixes. 2013-02-15 15:48:49 +00:00
lld [ELF][Hexagon] Fixing failing test on Bots, few symbol names are available only in debug builds, dont check the symbol names 2013-03-26 04:01:26 +00:00
lldb <rdar://problem/13502196> 2013-03-26 01:51:59 +00:00
llvm PowerPC: Simplify handling of fixups. 2013-03-26 10:56:47 +00:00
polly RegisterPasses: Improve comments 2013-03-23 21:35:52 +00:00