MC: permit emitting a symbol value as section relative
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 19 Jul 2014 21:01:58 +0000 (21:01 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 19 Jul 2014 21:01:58 +0000 (21:01 +0000)
commitac1b5f177b0bdb9730c60ffe8741b13ccafc4ff5
treea108f416e53ff57ef5c662bf56b8c99919fdfb95
parentf7a4b7a676951381519371776a57ac873e4478bf
MC: permit emitting a symbol value as section relative

This adds an optional parameter to the EmitSymbolValue method in MCStreamer to
permit emitting a symbol value as a section relative value.  This is to cover
the use in MCDwarf which should not really know about how to emit a section
relative value for a given target.

This addresses post-review comments from Eric Christopher in SVN r213275.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213463 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/MC/MCDwarf.cpp
lib/MC/MCStreamer.cpp