summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-05-02 21:39:20 +0000
committerDevang Patel <dpatel@apple.com>2007-05-02 21:39:20 +0000
commite95c6ad8024975432162aef11918e7c06e0d207c (patch)
treeb4f05c01174c5742dd7c3bdb67e5a89d05c10020 /llvm/lib/Target/CBackend/CBackend.cpp
parent700a0381b51dddf28002b8b5044ffdd44bfe0234 (diff)
downloadbcm5719-llvm-e95c6ad8024975432162aef11918e7c06e0d207c.tar.gz
bcm5719-llvm-e95c6ad8024975432162aef11918e7c06e0d207c.zip
Use 'static const char' instead of 'static const int'.
Due to darwin gcc bug, one version of darwin linker coalesces static const int, which defauts PassID based pass identification. llvm-svn: 36652
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index cbf480e8550..0fd03e003b4 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -57,7 +57,7 @@ namespace {
///
class CBackendNameAllUsedStructsAndMergeFunctions : public ModulePass {
public:
- static const int ID;
+ static const char ID;
CBackendNameAllUsedStructsAndMergeFunctions()
: ModulePass((intptr_t)&ID) {}
void getAnalysisUsage(AnalysisUsage &AU) const {
@@ -71,7 +71,7 @@ namespace {
virtual bool runOnModule(Module &M);
};
- const int CBackendNameAllUsedStructsAndMergeFunctions::ID = 0;
+ const char CBackendNameAllUsedStructsAndMergeFunctions::ID = 0;
/// CWriter - This class is the main chunk of code that converts an LLVM
/// module to a C translation unit.
@@ -88,7 +88,7 @@ namespace {
std::set<Function*> intrinsicPrototypesAlreadyGenerated;
public:
- static const int ID;
+ static const char ID;
CWriter(std::ostream &o)
: FunctionPass((intptr_t)&ID), Out(o), IL(0), Mang(0), LI(0),
TheModule(0), TAsm(0), TD(0) {}
@@ -264,7 +264,7 @@ namespace {
};
}
-const int CWriter::ID = 0;
+const char CWriter::ID = 0;
/// This method inserts names for any unnamed structure types that are used by
/// the program, and removes names from structure types that are not used by the
OpenPOWER on IntegriCloud