| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
MCParsedAsmOperand objects were being leaked.
llvm-svn: 138053
|
| |
|
|
|
|
| |
The argument is unused, and is a layering violation in any case.
llvm-svn: 137735
|
| |
|
|
|
|
| |
instead. This matches what as does.
llvm-svn: 137414
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Assigned symbol addresses get truncated to 32-bits, even on 64-bit platforms.
That's obviously bogus.
For example,
.globl _foo
.equ _foo, 0x987654321ULL
rdar://9922863
llvm-svn: 137158
|
| |
|
|
| |
llvm-svn: 137060
|
| |
|
|
|
|
|
|
|
| |
of MCInstrDescs functions.
- Add overrides for ARM.
- Teach llvm-objdump to use this instead of plain MCInstrDesc.
llvm-svn: 137059
|
| |
|
|
| |
llvm-svn: 136908
|
| |
|
|
|
|
|
|
| |
This is meant to be overriden by backends. Implement an override on PowerPC
which adjusts the offset by 2 for ha16/lo16 relocation kinds. This removes
a commented out hack and enables hello world to be compiled on PowerPC.
llvm-svn: 136905
|
| |
|
|
| |
llvm-svn: 136868
|
| |
|
|
|
|
| |
Move the reloc size assert into AsmBackend - where it is more apropos.
llvm-svn: 136855
|
| |
|
|
|
|
|
|
|
| |
externally visable, create a local symbol to use in the CFE. If not, use the
function label itself.
Fixes PR10420.
llvm-svn: 136716
|
| |
|
|
|
|
| |
This unbreaks some tests.
llvm-svn: 136692
|
| |
|
|
|
|
| |
to compile a working hello world on FreeBSD/PPC32.
llvm-svn: 136689
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
them properly. Specifically, the disassembler clearly attempts to
initialiaze all TargetInfo, MCTargeDesc, AsmParser, and Disassembler
sublibraries of registered targets. This makes the CMakeLists accurately
reflect this intent in the code.
This should fix the last of the link errors that I have gotten reports
of on OS X, but if anyone continues to see link errors, continue to
pester me and I'll look into it.
llvm-svn: 136603
|
| |
|
|
|
|
|
|
| |
for targets that don't have an MC-ized disassembler. I'm suspicious that
this shouldn't actually be happening, but hoping to fix the CMake build
on macs first, and investigate why second.
llvm-svn: 136508
|
| |
|
|
|
|
|
|
|
|
|
|
| |
First off, only depend on the actual MC-ized disassemblers in the
targets, not all of the libraries those in turn depend on.
Second off, only depend on those MC-ized disassemblers for targets we're
building.
This should fix builds of fewer than all targets.
llvm-svn: 136455
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
specified in the same file that the library itself is created. This is
more idiomatic for CMake builds, and also allows us to correctly specify
dependencies that are missed due to bugs in the GenLibDeps perl script,
or change from compiler to compiler. On Linux, this returns CMake to
a place where it can relably rebuild several targets of LLVM.
I have tried not to change the dependencies from the ones in the current
auto-generated file. The only places I've really diverged are in places
where I was seeing link failures, and added a dependency. The goal of
this patch is not to start changing the dependencies, merely to move
them into the correct location, and an explicit form that we can control
and change when necessary.
This also removes a serialization point in the build because we don't
have to scan all the libraries before we begin building various tools.
We no longer have a step of the build that regenerates a file inside the
source tree. A few other associated cleanups fall out of this.
This isn't really finished yet though. After talking to dgregor he urged
switching to a single CMake macro to construct libraries with both
sources and dependencies in the arguments. Migrating from the two macros
to that style will be a follow-up patch.
Also, llvm-config is still generated with GenLibDeps.pl, which means it
still has slightly buggy dependencies. The internal CMake
'llvm-config-like' macro uses the correct explicitly specified
dependencies however. A future patch will switch llvm-config generation
(when using CMake) to be based on these deps as well.
This may well break Windows. I'm getting a machine set up now to dig
into any failures there. If anyone can chime in with problems they see
or ideas of how to solve them for Windows, much appreciated.
llvm-svn: 136433
|
| |
|
|
| |
llvm-svn: 136197
|
| |
|
|
| |
llvm-svn: 136145
|
| |
|
|
|
|
| |
MCTargetAsmLexer; rename createAsmLexer to createMCAsmLexer and createAsmParser to createMCAsmParser.
llvm-svn: 136027
|
| |
|
|
| |
llvm-svn: 136012
|
| |
|
|
|
|
| |
createMCAsmBackend.
llvm-svn: 136010
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
assert-path code, as previously we would have fallen off the end of the
function, but please review and let me know if this should go somewhere
else.
This fixes a Clang warning:
lib/MC/MCMachOStreamer.cpp:201:11: error: enumeration value 'MCSA_IndirectSymbol' not handled in switch [-Werror,-Wswitch-enum]
switch (Attribute) {
^
1 error generated.
llvm-svn: 135976
|
| |
|
|
| |
llvm-svn: 135974
|
| |
|
|
|
|
| |
TargetMachine's anymore.
llvm-svn: 135963
|
| |
|
|
| |
llvm-svn: 135930
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The .local, .hidden, .internal, and .protected are not legal for all supported
file formats (in particular, they're invalid for MachO). Move the parsing for
them into the ELF assembly parser since that's the format they're for.
Similarly, .weak is used by COFF and ELF, but not MachO, so move the parsing
to the COFF and ELF asm parsers. Previously, using any of these directives
on Darwin would result in an assertion failure in the parser; now we get
a diagnostic as we should.
rdar://9827089
llvm-svn: 135921
|
| |
|
|
| |
llvm-svn: 135917
|
| |
|
|
|
|
| |
they belong.
llvm-svn: 135833
|
| |
|
|
| |
llvm-svn: 135825
|
| |
|
|
|
|
| |
InitializeX86MCInstrInfo, etc. are combined into InitializeX86TargetMC.
llvm-svn: 135812
|
| |
|
|
|
|
| |
emitted, emit them next as CIE/FDEs.
llvm-svn: 135807
|
| |
|
|
|
|
| |
failures running on Windows, Cygwin, or MingW hosts.
llvm-svn: 135639
|
| |
|
|
|
|
|
| |
There is still a bit more refactoring left to do in Targets. But we are now very
close to fixing all the layering issues in MC.
llvm-svn: 135611
|
| |
|
|
|
|
| |
This should fix the spurious buildbot errors.
llvm-svn: 135594
|
| |
|
|
|
|
|
|
| |
- Introduce JITDefault code model. This tells targets to set different default
code model for JIT. This eliminates the ugly hack in TargetMachine where
code model is changed after construction.
llvm-svn: 135580
|
| |
|
|
| |
llvm-svn: 135575
|
| |
|
|
| |
llvm-svn: 135573
|
| |
|
|
|
|
|
|
| |
TargetLoweringObjectFileImpl down to MCObjectFileInfo.
TargetAsmInfo is done to one last method. It's *almost* gone!
llvm-svn: 135569
|
| |
|
|
|
|
|
| |
(including compilation, assembly). Move relocation model Reloc::Model from
TargetMachine to MCCodeGenInfo so it's accessible even without TargetMachine.
llvm-svn: 135468
|
| |
|
|
|
|
| |
emit.
llvm-svn: 135452
|
| |
|
|
| |
llvm-svn: 135451
|
| |
|
|
| |
llvm-svn: 135449
|
| |
|
|
|
|
|
| |
wasn't being initialized by the enhanced disassembler,
leading to assertion failures.
llvm-svn: 135447
|
| |
|
|
|
|
| |
better location welcome).
llvm-svn: 135438
|
| |
|
|
|
|
|
|
|
| |
to MCRegisterInfo. Also initialize the mapping at construction time.
This patch eliminate TargetRegisterInfo from TargetAsmInfo. It's another step
towards fixing the layering violation.
llvm-svn: 135424
|
| |
|
|
|
|
|
| |
solution but it is a small step towards removing the horror that is
TargetAsmInfo.
llvm-svn: 135237
|
| |
|
|
| |
llvm-svn: 135236
|
| |
|
|
| |
llvm-svn: 135227
|
| |
|
|
|
|
| |
MCTargetDesc to prepare for next round of changes.
llvm-svn: 135219
|