summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-30 20:08:39 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-30 20:08:39 +0000
commit5301e7c60569c5ab22b113a5828fdb348796a680 (patch)
treefd57924623a8f84c4a8b765d5f090bfbde72efb8 /llvm/lib/Bytecode/Writer
parent3a0bbb0a4d757c665979689cee9a874dfb8e6353 (diff)
downloadbcm5719-llvm-5301e7c60569c5ab22b113a5828fdb348796a680.tar.gz
bcm5719-llvm-5301e7c60569c5ab22b113a5828fdb348796a680.zip
For PR1136: Rename GlobalVariable::isExternal as isDeclaration to avoid
confusion with external linkage types. llvm-svn: 33663
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r--llvm/lib/Bytecode/Writer/Writer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index a81f41efdd6..0d4ccbddd69 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/lib/Bytecode/Writer/Writer.cpp
@@ -1030,12 +1030,12 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
unsigned CC = I->getCallingConv()+1;
unsigned ID = (Slot << 5) | (CC & 15);
- if (I->isExternal()) // If external, we don't have an FunctionInfo block.
+ if (I->isDeclaration()) // If external, we don't have an FunctionInfo block.
ID |= 1 << 4;
if (I->getAlignment() || I->hasSection() || (CC & ~15) != 0 ||
- (I->isExternal() && I->hasDLLImportLinkage()) ||
- (I->isExternal() && I->hasExternalWeakLinkage())
+ (I->isDeclaration() && I->hasDLLImportLinkage()) ||
+ (I->isDeclaration() && I->hasExternalWeakLinkage())
)
ID |= 1 << 31; // Do we need an extension word?
@@ -1046,7 +1046,7 @@ void BytecodeWriter::outputModuleInfoBlock(const Module *M) {
// convention, bit 10 = hasSectionID., bits 11-12 = external linkage type
unsigned extLinkage = 0;
- if (I->isExternal()) {
+ if (I->isDeclaration()) {
if (I->hasDLLImportLinkage()) {
extLinkage = 1;
} else if (I->hasExternalWeakLinkage()) {
@@ -1103,7 +1103,7 @@ void BytecodeWriter::outputInstructions(const Function *F) {
void BytecodeWriter::outputFunction(const Function *F) {
// If this is an external function, there is nothing else to emit!
- if (F->isExternal()) return;
+ if (F->isDeclaration()) return;
BytecodeBlock FunctionBlock(BytecodeFormat::FunctionBlockID, *this);
unsigned rWord = (getEncodedVisibility(F) << 16) | getEncodedLinkage(F);
OpenPOWER on IntegriCloud