summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCValue.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix pr19645.Rafael Espindola2014-05-031-0/+18
| | | | | | | | | | | | | | | | The fix itself is fairly simple: move getAccessVariant to MCValue so that we replace the old weak expression evaluation with the far more general EvaluateAsRelocatable. This then requires that EvaluateAsRelocatable stop when it finds a non trivial reference kind. And that in turn requires the ELF writer to look harder for weak references. Last but not least, this found a case where we were being bug by bug compatible with gas and accepting an invalid input. I reported pr19647 to track it. llvm-svn: 207920
* [C++11] More 'nullptr' conversion or in some cases just using a boolean ↵Craig Topper2014-04-131-1/+1
| | | | | | check instead of comparing to nullptr. llvm-svn: 206129
* MC: add a RefKind field to MCValueTim Northover2014-03-291-0/+5
| | | | | | | | This is principally to allow neater mapping of fixups to relocations in ARM64 ELF. Without this, there isn't enough information available to GetRelocType, leading to many more fixup_arm64_... enumerators. llvm-svn: 205085
* Release build: guard dump functions withManman Ren2012-09-121-1/+1
| | | | | | | | "#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)" No functional change. Update r163344. llvm-svn: 163679
* Release build: guard dump functions with "ifndef NDEBUG"Manman Ren2012-09-061-0/+2
| | | | | | No functional change. llvm-svn: 163344
* MCValue: Change to holding MCSymbolRefExprs instead of MCSymbols, we will ↵Daniel Dunbar2010-03-181-3/+6
| | | | | | need this for accessing to symbol modifiers. llvm-svn: 98791
* now that MCSymbol::print doesn't use it's MAI argument, we can Chris Lattner2010-01-171-5/+3
| | | | | | | remove it and change all the code that prints MCSymbols to use << instead, which is much simpler and cleaner. llvm-svn: 93695
* Change errs() to dbgs().David Greene2010-01-051-1/+2
| | | | llvm-svn: 92634
* Thread an MCAsmInfo pointer through the various MC printing APIs, Chris Lattner2009-09-031-4/+4
| | | | | | | and fix a few things using << on MCSymbols to use ->print(). No functionality change other than unbreaking my previous patch. llvm-svn: 80890
* Add MCSymbol::{print, dump}Daniel Dunbar2009-08-141-3/+7
| | | | llvm-svn: 78983
* Add MCValue::{print, dump}Daniel Dunbar2009-08-141-0/+30
llvm-svn: 78982
OpenPOWER on IntegriCloud