From 65aae006bf65751ef5616ad5903e526dec9ddeab Mon Sep 17 00:00:00 2001 From: Sanjiv Gupta Date: Fri, 16 Jan 2009 02:45:46 +0000 Subject: [PATCH] Few targets do not have a single directive to emit global constants. For example, PIC16 needs to break a long or int constant into mulitple parts and emit multiple directives. So Allow targets to overried EmitConstantValueOnly(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62301 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/AsmPrinter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index cdc79516257..b50604bb121 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -317,7 +317,7 @@ namespace llvm { /// EmitConstantValueOnly - Print out the specified constant, without a /// storage class. Only constants of first-class type are allowed here. - void EmitConstantValueOnly(const Constant *CV); + virtual void EmitConstantValueOnly(const Constant *CV); /// EmitGlobalConstant - Print a general LLVM constant to the .s file. void EmitGlobalConstant(const Constant* CV); -- 2.34.1