aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-11-08 17:21:38 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-11-08 17:21:38 +0000
commitdbe42758a93dd74acd64dc5c88f7fc0708740143 (patch)
tree07ff3c59959ab83e3e82bdf16ee56d3fe7c52961 /include/llvm/CodeGen/AsmPrinter.h
parent121985568d2c9f3f2d376f3d6d0fc327dd04b8b0 (diff)
downloadexternal_llvm-dbe42758a93dd74acd64dc5c88f7fc0708740143.zip
external_llvm-dbe42758a93dd74acd64dc5c88f7fc0708740143.tar.gz
external_llvm-dbe42758a93dd74acd64dc5c88f7fc0708740143.tar.bz2
Factor out offset printing code into generic AsmPrinter.
FIXME: it seems, that most of targets don't support offsets wrt CPI/GlobalAddress', was it intentional? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index d3850a5..3b79b11 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -362,6 +362,9 @@ namespace llvm {
/// this is suported by the target.
void printVisibility(const std::string& Name, unsigned Visibility) const;
+ /// printOffset - This is just convenient handler for printing offsets.
+ void printOffset(int64_t Offset) const;
+
private:
const GlobalValue *findGlobalValue(const Constant* CV);
void EmitLLVMUsedList(Constant *List);