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)
commit00426d9c1928927c5825076f1ff7ce5b67c20b85
treedd4be24fbb696ea692793a74c43d7edcade7e108
parent5ecadda6429f403b92db937be4ae895fbbcad793
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.

llvm-svn: 213463
llvm/include/llvm/MC/MCStreamer.h
llvm/lib/MC/MCDwarf.cpp
llvm/lib/MC/MCStreamer.cpp