summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/MC/MCAsmBackend.h
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2018-11-16 05:16:44 +0000
committerTom Stellard <tstellar@redhat.com>2018-11-16 05:16:44 +0000
commit35aa48a4a4e423968c08ba98c545142c011ffa2d (patch)
treec9ef39bdbe4679eed93237fcf84c839706a5dc9c /llvm/include/llvm/MC/MCAsmBackend.h
parent77480c54e9028b5aa3ea76b752c4eccaa4809773 (diff)
downloadbcm5719-llvm-35aa48a4a4e423968c08ba98c545142c011ffa2d.tar.gz
bcm5719-llvm-35aa48a4a4e423968c08ba98c545142c011ffa2d.zip
Merging r344591:
------------------------------------------------------------------------ r344591 | abeserminji | 2018-10-16 01:27:28 -0700 (Tue, 16 Oct 2018) | 11 lines [mips][micromips] Fix how values in .gcc_except_table are calculated When a landing pad is calculated in a program that is compiled for micromips, it will point to an even address. Such an error will cause a segmentation fault, as the instructions in micromips are aligned on odd addresses. This patch sets the last bit of the offset where a landing pad is, to 1, which will effectively be an odd address and point to the instruction exactly. Differential Revision: https://reviews.llvm.org/D52985 ------------------------------------------------------------------------ llvm-svn: 347028
Diffstat (limited to 'llvm/include/llvm/MC/MCAsmBackend.h')
-rw-r--r--llvm/include/llvm/MC/MCAsmBackend.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/MC/MCAsmBackend.h b/llvm/include/llvm/MC/MCAsmBackend.h
index 030d3c05aa5..07835c21fce 100644
--- a/llvm/include/llvm/MC/MCAsmBackend.h
+++ b/llvm/include/llvm/MC/MCAsmBackend.h
@@ -165,6 +165,11 @@ public:
return 0;
}
+ /// Check whether a given symbol has been flagged with MICROMIPS flag.
+ virtual bool isMicroMips(const MCSymbol *Sym) const {
+ return false;
+ }
+
/// Handles all target related code padding when starting to write a new
/// basic block to an object file.
///
OpenPOWER on IntegriCloud