aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-28 23:31:10 +0000
committerChris Lattner <sabre@nondot.org>2001-10-28 23:31:10 +0000
commit1d050112f72c87bb1a53d2218c793ff44537dcef (patch)
treeb5227182a921df58c4e0e06d6032c71fe7acd105
parentc426c63b39adaf6ac5fc16835622a2dbe810eac0 (diff)
Initial checkin of name mangling code. Moved from Linker.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1017 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/NameMangling.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/llvm/Support/NameMangling.h b/include/llvm/Support/NameMangling.h
new file mode 100644
index 0000000000..67e68c7738
--- /dev/null
+++ b/include/llvm/Support/NameMangling.h
@@ -0,0 +1,27 @@
+//===- llvm/Support/NameMangling.h - Name Mangling for LLVM ------*- C++ -*--=//
+//
+// This file implements a consistent scheme for name mangling symbols.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_SUPPORT_NAMEMANGLING_H
+#define LLVM_SUPPORT_NAMEMANGLING_H
+
+#include <string>
+class Type;
+class Value;
+
+// MangleTypeName - Implement a consistent name-mangling scheme for
+// a given type.
+//
+string MangleTypeName(const Type *type);
+
+// MangleName - implement a consistent name-mangling scheme for all
+// externally visible (i.e., global) objects.
+//
+// privateName should be unique within the module.
+//
+string MangleName(const string &privateName, const Value *V);
+
+#endif
+