XCore target: fix const section handling
authorRobert Lytton <robert@xmos.com>
Tue, 11 Feb 2014 10:36:26 +0000 (10:36 +0000)
committerRobert Lytton <robert@xmos.com>
Tue, 11 Feb 2014 10:36:26 +0000 (10:36 +0000)
commitd3abd0b648dd795dc481cc06169714738eb9bbdc
tree2f9810bcff0e274928ebc36fb8acfabdb7e2cc76
parent04a573a41f037eae148f70bf2038602f7e32dd71
XCore target: fix const section handling

Xcore target ABI requires const data that is externally visible
to be handled differently if it has C-language linkage rather than
C++ language linkage.

Clang now emits ".cp.rodata" section information.

All other externally visible constant data will be placed in the DP section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201144 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/XCore/XCoreISelLowering.cpp
lib/Target/XCore/XCoreTargetObjectFile.cpp
lib/Target/XCore/XCoreTargetObjectFile.h
test/CodeGen/XCore/codemodel.ll
test/CodeGen/XCore/exception.ll
test/CodeGen/XCore/globals.ll
test/CodeGen/XCore/llvm-intrinsics.ll
test/CodeGen/XCore/load.ll