diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-04-29 08:23:18 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-04-29 08:23:18 +0000 |
commit | 55715cde5fff543a4e33cb025f512ae60f7e32b1 (patch) | |
tree | 73a88c57b6d0f1a94c8a53fea09a9bc8e97a52c0 | |
parent | 70c67fd7f30d0bed83191d07bbec8def4e12a260 (diff) | |
download | external_llvm-55715cde5fff543a4e33cb025f512ae60f7e32b1.zip external_llvm-55715cde5fff543a4e33cb025f512ae60f7e32b1.tar.gz external_llvm-55715cde5fff543a4e33cb025f512ae60f7e32b1.tar.bz2 |
Add directive to declare external globals.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70379 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index e493538..f223f47 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -384,6 +384,11 @@ namespace llvm { /// GlobalDirective - This is the directive used to declare a global entity. /// const char *GlobalDirective; // Defaults to NULL. + + /// ExternDirective - This is the directive used to declare external + /// globals. + /// + const char *ExternDirective; // Defaults to NULL. /// SetDirective - This is the name of a directive that can be used to tell /// the assembler to set the value of a variable to some expression. @@ -801,6 +806,9 @@ namespace llvm { const char *getGlobalDirective() const { return GlobalDirective; } + const char *getExternDirective() const { + return ExternDirective; + } const char *getSetDirective() const { return SetDirective; } |