summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRVRegNamerUtils.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-09-17 12:56:29 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-09-17 12:56:29 +0000
commitdf4b9a3f4f7acf76968540391223ec23844e6aa7 (patch)
tree737a845185ffdd2e1614905f5f933ee1d7a6c130 /llvm/lib/CodeGen/MIRVRegNamerUtils.h
parent88b4b9f97391e8beec02fe1f0a4d16e1b0e12610 (diff)
downloadbcm5719-llvm-df4b9a3f4f7acf76968540391223ec23844e6aa7.tar.gz
bcm5719-llvm-df4b9a3f4f7acf76968540391223ec23844e6aa7.zip
Hide implementation details in namespaces.
llvm-svn: 372113
Diffstat (limited to 'llvm/lib/CodeGen/MIRVRegNamerUtils.h')
-rw-r--r--llvm/lib/CodeGen/MIRVRegNamerUtils.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MIRVRegNamerUtils.h b/llvm/lib/CodeGen/MIRVRegNamerUtils.h
index 06d16f80cd0..c5b52a96853 100644
--- a/llvm/lib/CodeGen/MIRVRegNamerUtils.h
+++ b/llvm/lib/CodeGen/MIRVRegNamerUtils.h
@@ -1,3 +1,4 @@
+
//===------------ MIRVRegNamerUtils.h - MIR VReg Renaming Utilities -------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@@ -13,6 +14,9 @@
//
//===----------------------------------------------------------------------===//
+#ifndef LLVM_LIB_CODEGEN_MIRVREGNAMERUTILS_H
+#define LLVM_LIB_CODEGEN_MIRVREGNAMERUTILS_H
+
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
@@ -23,7 +27,7 @@
#include <queue>
-using namespace llvm;
+namespace llvm {
/// NamedVRegCursor - The cursor is an object that keeps track of what the next
/// vreg name should be. It does book keeping to determine when to skip the
@@ -81,3 +85,7 @@ public:
// @return changed
bool renameVRegs(MachineBasicBlock *MBB);
};
+
+} // namespace llvm
+
+#endif
OpenPOWER on IntegriCloud