Files
clang-p2996/lld/test/core/code-model-attributes.objtxt
Rafael Espindola c08ab8e6e4 Delete unnecessary generality in loadFile.
loadFile could load mulitple files just because yaml has a feature for
putting multiple documents in one file.

Designing a linker around what yaml can do seems like a bad idea to
me. This patch changes it to read a single file.

There are further improvements to be done to the api and they
will follow shortly.

llvm-svn: 235724
2015-04-24 15:51:45 +00:00

34 lines
1.0 KiB
Plaintext

# RUN: lld -core %s %p/Inputs/code-model-attributes.objtxt \
# RUN: %p/Inputs/code-model-attributes2.objtxt \
# RUN: %p/Inputs/code-model-attributes3.objtxt \
# RUN: %p/Inputs/code-model-attributes4.objtxt \
# RUN: %p/Inputs/code-model-attributes5.objtxt | FileCheck %s
#
# Test that code model attributes are preserved
#
---
defined-atoms:
- name: _def
...
# CHECK: name: _def
# CHECK-NOT: code-model: mips-pic
# CHECK-NOT: code-model: mips-micro
# CHECK-NOT: code-model: mips-micro-pic
# CHECK-NOT: code-model: mips-16
# CHECK: name: _none
# CHECK-NOT: code-model: mips-pic
# CHECK-NOT: code-model: mips-micro
# CHECK-NOT: code-model: mips-micro-pic
# CHECK-NOT: code-model: mips-16
# CHECK: name: _mips_pic
# CHECK: code-model: mips-pic
# CHECK: name: _mips_micro
# CHECK: code-model: mips-micro
# CHECK: name: _mips_micro_pic
# CHECK: code-model: mips-micro-pic
# CHECK: name: _mips_16
# CHECK: code-model: mips-16
# CHECK: ...