Displaying 8 results from an estimated 8 matches for "emitassemblerflag".
2011 Mar 29
2
[LLVMdev] ARM mapping symbols
Hi there,
I've created a bug on llvm:
http://www.llvm.org/bugs/show_bug.cgi?id=9582
Basically, ARM, Thumb and data mapping symbols should have been
exported in the ELF file, so the linker can work correctly.
I can do the change and create some test cases, but I haven't been
paying much attention to recent MC developments. Is ArmAsmPrinter the
place to change for that, or is there an MC
2011 Mar 29
0
[LLVMdev] ARM mapping symbols
...handling. From the sounds of things, you'll be interested in the ARM::*_JT (jump table branch) instructions and ARM::CONSTPOOL_ENTRY.
These mapping symbols sound very similar to special-purpose assembler directives. Off the cuff, it makes sense to me to do something similar to the MCStreamer::EmitAssemblerFlag() routine.
-Jim
2010 Jul 16
0
[LLVMdev] Win32 COFF Support - Patch 3
...MCMachOStreamer::EmitLabel for how I am doing this currently; I intend on moving
some of the helper functions like getOrCreateDataFragment to the base class.
> +
> + getSymbolData(Symbol)->Fragment = Fragment;
> +
> + AddFragment(Fragment);
> }
>
> void WinCOFFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
> @@ -91,10 +250,29 @@ void WinCOFFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
> }
>
> void WinCOFFStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
> + getSymbolData(Symbol);
> + VisitSymbols(Value);
> + Symbol->setVariab...
2010 Jul 14
2
[LLVMdev] Win32 COFF Support - Patch 3
On Sun, Jul 11, 2010 at 6:10 PM, Chris Lattner <clattner at apple.com> wrote:
> This probably needs to be slightly tweaked to work with mainline. I don't see anything objectionable, but I think Daniel needs to review this one.
Updated patch to work with mainline.
http://github.com/Bigcheese/llvm-mirror/commit/d19a4c82c18afc4830c09b70f02d162292231c94
- Michael Spencer
2012 Oct 17
0
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
...ssembler)
- : MCObjectStreamer(Context, TAB, OS, Emitter, Assembler) {}
+ : MCObjectStreamer(Context, TAB, OS, Emitter, Assembler),
+ IsThumb(false), MappingSymbolCounter(0) {}
~MCELFStreamer() {}
@@ -58,6 +60,7 @@ public:
virtual void EmitLabel(MCSymbol *Symbol);
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag);
virtual void EmitThumbFunc(MCSymbol *Func);
+ virtual void EmitDataRegion(MCDataRegionType Kind);
virtual void EmitAssignment(MCSymbol *Symbol, const MCExpr *Value);
virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol);
virtual void EmitSymbolA...
2012 Oct 16
2
[LLVMdev] R_ARM_ABS32 disassembly with integrated-as
Attached is an example of how to reproduce the issue. It uses a C
file that happens to has a bunch of switch statements which are
encoded as jump tables, giving us data-in-code. Usage:
To build object files with clang via the -integrated-as versus via GCC:
$ export NDK_DIR=<my_ndk_dir>
$ export LLVM_DIR=<my_llvm_bin_dir>
$ make
To test that the generated objects contain the same
2013 Sep 25
1
[LLVMdev] arm64 / iOS support
...759809f..2a38247 100644
--- a/lib/Target/AArch64/AArch64AsmPrinter.cpp
+++ b/lib/Target/AArch64/AArch64AsmPrinter.cpp
@@ -281,6 +281,8 @@ void AArch64AsmPrinter::EmitEndOfAsmFile(Module &M) {
}
Stubs.clear();
}
+ } else if (Subtarget->isTargetDarwin()) {
+ OutStreamer.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
}
}
diff --git a/lib/Target/AArch64/AArch64ISelLowering.cpp b/lib/Target/AArch64/AArch64ISelLowering.cpp
index 48f34c0..0feaa0d 100644
--- a/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -32,6 +32,8 @@ using namespa...
2010 Jun 21
2
[LLVMdev] MC: Object file specific parsing
...ctiveDarwinSubsectionsViaSymbols
-/// ::= .subsections_via_symbols
-bool AsmParser::ParseDirectiveDarwinSubsectionsViaSymbols() {
- if (Lexer.isNot(AsmToken::EndOfStatement))
- return TokError("unexpected token in '.subsections_via_symbols' directive");
-
- Lex();
-
- Out.EmitAssemblerFlag(MCAF_SubsectionsViaSymbols);
-
- return false;
-}
-
/// ParseDirectiveAbort
/// ::= .abort [ "abort_string" ]
bool AsmParser::ParseDirectiveAbort() {
@@ -1653,37 +1154,6 @@ bool AsmParser::ParseDirectiveAbort() {
return false;
}
-/// ParseDirectiveLsym
-/// ::= .lsym identifie...