diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-16 01:34:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-10-16 01:34:32 +0000 |
commit | 43c4e24fad22d847b8345331a66e3397216f650e (patch) | |
tree | 27ca48bf006ec3c28974ba37a78d960a3f7b4a2e /llvm/lib/MC/MCAsmInfoELF.cpp | |
parent | 6468493250efe9a81bd8b79e8a119ff81f3a8e19 (diff) | |
download | llvm-43c4e24fad22d847b8345331a66e3397216f650e.zip llvm-43c4e24fad22d847b8345331a66e3397216f650e.tar.gz llvm-43c4e24fad22d847b8345331a66e3397216f650e.tar.bz2 |
Add a MCAsmInfoELF class and factor some code into it.
We had a MCAsmInfoCOFF, but no common class for all the ELF MCAsmInfos before.
llvm-svn: 192760
Diffstat (limited to 'llvm/lib/MC/MCAsmInfoELF.cpp')
-rw-r--r-- | llvm/lib/MC/MCAsmInfoELF.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfoELF.cpp b/llvm/lib/MC/MCAsmInfoELF.cpp new file mode 100644 index 0000000..8cf4e4f --- /dev/null +++ b/llvm/lib/MC/MCAsmInfoELF.cpp @@ -0,0 +1,23 @@ +//===-- MCAsmInfoELF.cpp - ELF asm properties -------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines target asm properties related what form asm statements +// should take in general on ELF-based targets +// +//===----------------------------------------------------------------------===// + +#include "llvm/MC/MCAsmInfoELF.h" +using namespace llvm; + +void MCAsmInfoELF::anchor() { } + +MCAsmInfoELF::MCAsmInfoELF() { + HasIdentDirective = true; + WeakRefDirective = "\t.weak\t"; +} |