Add support for a few simple fixups to the ARM Darwin asm backend. This allows
authorJim Grosbach <grosbach@apple.com>
Tue, 9 Nov 2010 01:37:15 +0000 (01:37 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 9 Nov 2010 01:37:15 +0000 (01:37 +0000)
commit679cbd3b215b1769a6035e334f9009aeeb940ddd
treeb59f0008e5392f003e3d8e3298d1ac5eae2dd404
parent71365d3774a6c02f3f198fbf08a56e4b6346bbcc
Add support for a few simple fixups to the ARM Darwin asm backend. This allows
constant pool references and global variable refernces to resolve properly
for object file generation. For example,

int x;
void foo(unsigned a, unsigned *p) {
  p[a] = x;
}

can now be successfully compiled directly to an (ARM mode) object file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118469 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMAsmBackend.cpp
lib/Target/ARM/ARMMCCodeEmitter.cpp